make hm-module reload on change

This commit is contained in:
Your Name 2025-10-19 20:18:30 +02:00 committed by vxrail
parent b1a49f8710
commit ff2ea0a056

View file

@ -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;