aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-29 09:24:28 +0100
committerSoispha <soispha@vhack.eu>2023-12-29 09:24:28 +0100
commit5474561898d776335864f5e6f9ea796ec03eb73f (patch)
treea7cb08091865877081b57ff245e81f9c71fdd535
parentfix(hm/conf/): Use new xdg config module (diff)
downloadnixos-config-5474561898d776335864f5e6f9ea796ec03eb73f.zip
fix(hm/conf/xdg): Correctly specify the attr names under xdg
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/xdg/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/hm/soispha/conf/xdg/default.nix b/hm/soispha/conf/xdg/default.nix
index d18377c0..3715cc87 100644
--- a/hm/soispha/conf/xdg/default.nix
+++ b/hm/soispha/conf/xdg/default.nix
@@ -17,8 +17,18 @@
};
};
in {
- xdg.mimeApps = {
- enable = true;
+ xdg = {
+ mimeApps = {
+ enable = true;
+ defaultApplications = {
+ "text/html" = ["url_handler.desktop"];
+ "text/xml" = ["url_handler.desktop"];
+ "x-scheme-handler/http" = ["url_handler.desktop"];
+ "x-scheme-handler/https" = ["url_handler.desktop"];
+ "x-scheme-handler/about" = ["url_handler.desktop"];
+ "x-scheme-handler/unknown" = ["url_handler.desktop"];
+ };
+ };
desktopEntries = {
url_handler = {
name = "url_handler";
@@ -40,13 +50,5 @@ in {
];
};
};
- defaultApplications = {
- "text/html" = ["url_handler.desktop"];
- "text/xml" = ["url_handler.desktop"];
- "x-scheme-handler/http" = ["url_handler.desktop"];
- "x-scheme-handler/https" = ["url_handler.desktop"];
- "x-scheme-handler/about" = ["url_handler.desktop"];
- "x-scheme-handler/unknown" = ["url_handler.desktop"];
- };
};
}