git.iko.soy/typeable/nixpkgs
on master help sign in
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

commitd788874bdb3d087a70e8140db77ec1b9a1f28599 authorMarkus Kowalewski <markus.kowalewski@fysik.su.se> dateFri 1 Feb 2019, 14:03 (8 years ago) parent5c6892e
1 file changed+1−1
nixos/modules/tasks/auto-upgrade.nix+1−1
nixos/modules/tasks/auto-upgrade.nix+1−1
@@ -78,7 +78,7 @@ let cfg = config.system.autoUpgrade; in
7878 HOME = "/root";
7979 } // config.networking.proxy.envVars;
8080
81− path = [ pkgs.gnutar pkgs.xz.bin config.nix.package.out ];
81+ path = [ pkgs.gnutar pkgs.xz.bin pkgs.gitMinimal config.nix.package.out ];
8282
8383 script = ''
8484 ${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}