about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/home.nix12
-rw-r--r--home/modules/firefox.nix22
2 files changed, 26 insertions, 8 deletions
diff --git a/home/home.nix b/home/home.nix
index f6b2d81b6048..bb56cb6ea576 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";
   };
 
-  services.gpg-agent = {
-    enable = true;
-  };
+  urbint.projectPath = "code/urb";
 
-  xdg.mimeApps = {
+  services.gpg-agent = {
     enable = true;
-    defaultApplications = {
-      "text/html" = [ "firefox.desktop" ];
-    };
   };
 }
diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix
new file mode 100644
index 000000000000..c7e78685a5a3
--- /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;
+  };
+}