From b1752dd3b1adcb317c700c150ee5ac7cdf6539d3 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Wed, 9 Jul 2025 01:28:57 +0200 Subject: [PATCH] Home: Always enable xdg but set mime depending on system config --- home/christoph/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/christoph/default.nix b/home/christoph/default.nix index c5630e90..e19ffede 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -252,10 +252,12 @@ # This only works when HM is installed as a system module, # as nixosConfig won't be available otherwise. xdg = { - enable = !headless; - mime.enable = !headless; + enable = true; # This only does xdg path management + mime.enable = nixosConfig.modules.mime.enable; + mimeApps = { - enable = !headless; + enable = nixosConfig.modules.mime.enable; + associations.added = nixosConfig.xdg.mime.addedAssociations; associations.removed = nixosConfig.xdg.mime.removedAssociations; defaultApplications = nixosConfig.xdg.mime.defaultApplications;