diff --git a/home/home.nix b/home/home.nix index f6b2d81b6..bb56cb6ea 100644 --- a/home/home.nix +++ b/home/home.nix @@ -6,6 +6,7 @@ let machine = ./machines/chupacabra.nix; in ./modules/alacritty.nix ./modules/emacs.nix ./modules/email.nix + ./modules/firefox.nix ./modules/i3.nix ./modules/shell.nix ./modules/vim.nix @@ -87,17 +88,12 @@ let machine = ./machines/chupacabra.nix; in impure.clonedRepos.passwordStore = { github = "glittershark/pass"; - path = ".password-store"; + path = ".local/share/password-store"; }; + urbint.projectPath = "code/urb"; + services.gpg-agent = { enable = true; }; - - xdg.mimeApps = { - enable = true; - defaultApplications = { - "text/html" = [ "firefox.desktop" ]; - }; - }; } diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix new file mode 100644 index 000000000..c7e78685a --- /dev/null +++ b/home/modules/firefox.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +{ + + xdg.mimeApps = rec { + enable = true; + defaultApplications = { + "text/html" = [ "firefox.desktop" ]; + "x-scheme-handler/http" = [ "firefox.desktop" ]; + "x-scheme-handler/https" = [ "firefox.desktop" ]; + "x-scheme-handler/ftp" = [ "firefox.desktop" ]; + "x-scheme-handler/chrome" = [ "firefox.desktop" ]; + "application/x-extension-htm" = [ "firefox.desktop" ]; + "application/x-extension-html" = [ "firefox.desktop" ]; + "application/x-extension-shtml" = [ "firefox.desktop" ]; + "application/xhtml+xml" = [ "firefox.desktop" ]; + "application/x-extension-xhtml" = [ "firefox.desktop" ]; + "application/x-extension-xht" = [ "firefox.desktop" ]; + }; + associations.added = defaultApplications; + }; +}