summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-08-22 18:11:10 +0200
committersils <sils@sils.li>2023-08-22 18:11:10 +0200
commitfa95532f9b8bc433ff4187181afdc57166e6bd6b (patch)
treec0f4648ed7b6a2bbe5f507bf11bf798525a97294
parentRevert "Fix(u/sils/waybar): Apply config to hyprland/workspaces" (diff)
downloadnix-config-fa95532f9b8bc433ff4187181afdc57166e6bd6b.tar.gz
nix-config-fa95532f9b8bc433ff4187181afdc57166e6bd6b.zip
Feat(u/sils): Add xdg config
-rw-r--r--users/sils/default.nix1
-rw-r--r--users/sils/xdg/default.nix13
2 files changed, 14 insertions, 0 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix
index d39d785..2480fba 100644
--- a/users/sils/default.nix
+++ b/users/sils/default.nix
@@ -17,6 +17,7 @@
     ./xsession
     #./yambar #TODO Update Shell Library
     ./waybar
+    ./xdg
     ./zsh
     nixvim.homeManagerModules.nixvim
   ];
diff --git a/users/sils/xdg/default.nix b/users/sils/xdg/default.nix
new file mode 100644
index 0000000..f13322f
--- /dev/null
+++ b/users/sils/xdg/default.nix
@@ -0,0 +1,13 @@
+{...}: {
+  xdg = {
+    enable = true;
+    mime.enable = true;
+    mimeApps = {
+      enable = true;
+      defaultApplications = {
+        "application/pdf" = "firefox.desktop";
+        "x-scheme-handler/unknown" = "firefox.desktop";
+      };
+    };
+  };
+}