herdr: Automatically reload config

This commit is contained in:
Sebastián Estrella
2026-07-15 14:57:39 -05:00
committed by Austin Horstman
parent 18f9047340
commit 460108009c

View File

@@ -64,6 +64,7 @@ in
xdg.configFile."herdr/config.toml" = mkIf (cfg.settings != { }) {
source = tomlFormat.generate "herdr-config.toml" cfg.settings;
onChange = lib.mkIf (cfg.package != null) "${lib.getExe cfg.package} server reload-config || true";
};
};
}