From 5474561898d776335864f5e6f9ea796ec03eb73f Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 29 Dec 2023 09:24:28 +0100 Subject: fix(hm/conf/xdg): Correctly specify the attr names under xdg --- hm/soispha/conf/xdg/default.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'hm/soispha/conf') 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"]; - }; }; } -- cgit 1.4.1