mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
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
This commit is contained in:
parent
5c6892e1a2
commit
d788874bdb
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue