commit db2251c3cdb13c7e428d8b5476521b378231fabd
parent 6c3614c7512868b1db4f6c1eeb13fc09f2e1fa78
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 3 Feb 2022 13:48:50 +0100
parent 6c3614c7512868b1db4f6c1eeb13fc09f2e1fa78
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 3 Feb 2022 13:48:50 +0100
configurations/xdg: force-override existing mimeapps.list file
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/configurations/xdg.nix b/configurations/xdg.nix @@ -11,18 +11,13 @@ }; home-manager.users.leah = { - home = { - activation."mimeapps-remove" = { - before = [ "linkGeneration" ]; - after = [ ]; - data = "rm -f /home/leah/.config/mimeapps.list"; - }; - }; - xdg = { enable = true; mime.enable = true; + #force hm to override existing mimeapps.list file + configFile."mimeapps.list".force = true; + mimeApps = { enable = true; defaultApplications = {