Skip to content

Commit

Permalink
nh: remove PATH assignment in nh-clean systemd unit
Browse files Browse the repository at this point in the history
Runs without additions to path.

also:

- can't use $PATH in Environment=
- should add bin directory to path not the exe
tetov authored and rycee committed Jan 24, 2025
1 parent a2362a6 commit a042868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/programs/nh.nix
Original file line number Diff line number Diff line change
@@ -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}";
};
};

0 comments on commit a042868

Please sign in to comment.