From ff2ea0a056ed279126cf564115dd9f56fb563f29 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 19 Oct 2025 20:18:30 +0200 Subject: [PATCH] make hm-module reload on change --- nix/hm-modules.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/hm-modules.nix b/nix/hm-modules.nix index 286f0cb..4ce47a7 100644 --- a/nix/hm-modules.nix +++ b/nix/hm-modules.nix @@ -100,6 +100,12 @@ in { xdg.configFile = { "mango/config.conf" = lib.mkIf (cfg.settings != "") { text = cfg.settings; + onChange = '' + XDG_CURRENT_DESKTOP=''${XDG_CURRENT_DESKTOP} + if [[ $XDG_CURRENT_DESKTOP == "mango" ]]; then + mmsg -d reload-config + fi + ''; }; "mango/autostart.sh" = lib.mkIf (cfg.autostart_sh != "") { source = autostart_sh;