1
0
Fork 0
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:
Benedikt Rips 2025-10-27 20:38:45 +01:00 committed by Austin Horstman
parent fca3fedcdc
commit b53026f683

View file

@ -37,7 +37,9 @@ in
# Please change the option systemd.user.tmpfiles.rules instead. # Please change the option systemd.user.tmpfiles.rules instead.
${lib.concatStringsSep "\n" cfg.rules} ${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 = "systemd/user/basic.target.wants/systemd-tmpfiles-setup.service".source =
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service"; "${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service";