tmpfiles: add option to purge rules' targets on change

This commit is contained in:
Benedikt Rips 2025-10-31 14:29:48 +01:00 committed by Austin Horstman
parent 090aa14e5d
commit b4350d54c2
7 changed files with 151 additions and 58 deletions

View file

@ -37,7 +37,7 @@ in
# Use `systemd-tmpfiles` since glab requires its configuration file to have
# mode 0600.
systemd.user.tmpfiles.settings.glab = lib.mkIf (cfg.settings != { }) {
"${config.xdg.configHome}/glab-cli/config.yml" = {
rules."${config.xdg.configHome}/glab-cli/config.yml" = {
"C+".argument = yaml.generate "glab-config" cfg.settings;
z.mode = "0600";
};