make firefox the default browser

This commit is contained in:
nora 2024-10-15 17:03:26 +02:00
parent f673bf7df1
commit 25eedb7f9d
2 changed files with 10 additions and 1 deletions

View file

@ -4,7 +4,7 @@
profiles = { profiles = {
nils = { nils = {
id = 0; id = 0;
name = "nils"; name = "nora";
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin ublock-origin

View file

@ -138,6 +138,7 @@ in
# scrollButton = 2; # scrollButton = 2;
#}; #};
}; };
hardware.nvidia = { hardware.nvidia = {
# https://github.com/NixOS/nixpkgs/issues/299944#issuecomment-2027246826 # https://github.com/NixOS/nixpkgs/issues/299944#issuecomment-2027246826
modesetting.enable = true; modesetting.enable = true;
@ -220,6 +221,14 @@ in
}; };
}; };
xdg.mime.defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
};
# This is apparently used by Electron? Maybe not anymore.
environment.sessionVariables.DEFAULT_BROWSER = lib.getExe pkgs.firefox;
services.openssh = { services.openssh = {
enable = true; enable = true;
hostKeys = [ hostKeys = [