diff options
author | Markus Kowalewski <markus.kowalewski@fysik.su.se> | 2019-02-01 14:03:21 +0100 |
---|---|---|
committer | Markus Kowalewski <markus.kowalewski@gmail.com> | 2019-02-01 23:10:51 +0100 |
commit | d788874bdb3d087a70e8140db77ec1b9a1f28599 (patch) | |
tree | 7a21252e74043b6c4384e7921a7429235fa1180d /nixos/modules/tasks/auto-upgrade.nix | |
parent | 5c6892e1a277ca4bd39340a2548c84b0a7b96f81 (diff) |
NixOS/auto-upgrade: add git to service path
Resolves https://github.com/NixOS/nixpkgs/issues/54946
where nixos-rebuild can not find git, when executed
from inside the systemd service
Diffstat (limited to 'nixos/modules/tasks/auto-upgrade.nix')
-rw-r--r-- | nixos/modules/tasks/auto-upgrade.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/auto-upgrade.nix b/nixos/modules/tasks/auto-upgrade.nix index 7b756b70e2fc..d225778a3878 100644 --- a/nixos/modules/tasks/auto-upgrade.nix +++ b/nixos/modules/tasks/auto-upgrade.nix @@ -78,7 +78,7 @@ let cfg = config.system.autoUpgrade; in HOME = "/root"; } // config.networking.proxy.envVars; - path = [ pkgs.gnutar pkgs.xz.bin config.nix.package.out ]; + path = [ pkgs.gnutar pkgs.xz.bin pkgs.gitMinimal config.nix.package.out ]; script = '' ${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags} |