diff --git a/nix/modules/gitea-runner.nix b/nix/modules/gitea-runner.nix index 1a3fb39..51b8e97 100644 --- a/nix/modules/gitea-runner.nix +++ b/nix/modules/gitea-runner.nix @@ -59,11 +59,7 @@ users = [ "gitea-runner" ]; commands = [ { - command = "${pkgs.nix}/bin/nix-collect-garbage"; - options = [ "NOPASSWD" "SETENV" ]; - } - { - command = "${pkgs.nix}/bin/nix-env"; + command = "/run/current-system/sw/bin/nix-collect-garbage"; options = [ "NOPASSWD" "SETENV" ]; } ];