From a0428685572b134f6594e7d7f5db5e1febbab2d7 Mon Sep 17 00:00:00 2001 From: Anton Tetov Date: Wed, 22 Jan 2025 17:59:49 +0100 Subject: [PATCH] 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 --- modules/programs/nh.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/programs/nh.nix b/modules/programs/nh.nix index cf6c06e5..23d1d67d 100644 --- a/modules/programs/nh.nix +++ b/modules/programs/nh.nix @@ -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}"; }; };