tmpfiles: add option to purge rules' targets on change
This commit is contained in:
parent
090aa14e5d
commit
b4350d54c2
7 changed files with 151 additions and 58 deletions
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue