mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
tmpfiles: echo the onChange command and respect $DRY_RUN
This commit is contained in:
parent
fca3fedcdc
commit
b53026f683
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,9 @@ in
|
|||
# Please change the option ‘systemd.user.tmpfiles.rules’ instead.
|
||||
${lib.concatStringsSep "\n" cfg.rules}
|
||||
'';
|
||||
onChange = "${pkgs.systemd}/bin/systemd-tmpfiles --user --remove --create";
|
||||
onChange = ''
|
||||
run ${pkgs.systemd}/bin/systemd-tmpfiles --user --remove --create ''${DRY_RUN:+--dry-run}
|
||||
'';
|
||||
};
|
||||
"systemd/user/basic.target.wants/systemd-tmpfiles-setup.service".source =
|
||||
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue