mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-04 20:49:23 +00:00
herdr: Automatically reload config
This commit is contained in:
committed by
Austin Horstman
parent
18f9047340
commit
460108009c
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user