1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-06 00:05:05 +01:00

nh: remove PATH assignment in nh-clean systemd unit

Runs without additions to path.

also:

- can't use $PATH in Environment=
- should add bin directory to path not the exe
This commit is contained in:
Anton Tetov 2025-01-22 17:59:49 +01:00 committed by Robert Helgesson
parent a2362a6496
commit a042868557
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -74,8 +74,7 @@ in {
Service = {
Type = "oneshot";
ExecStart =
"exec ${lib.getExe cfg.package} clean user ${cfg.clean.extraArgs}";
Environment = "PATH=$PATH:${config.nix.package}";
"${lib.getExe cfg.package} clean user ${cfg.clean.extraArgs}";
};
};