Commit 25bff13166e9

Vincent Demeester <vincent@sbr.pm>
2020-06-05 15:39:14
profiles/nix-auto-update: update make target…
… and remove the path configuration. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2042a10
Changed files (1)
modules/profiles/nix-auto-update.nixos.nix
@@ -47,11 +47,10 @@ in
             inherit (config.environment.sessionVariables) NIX_PATH;
             HOME = "/root";
           };
-          path = [ pkgs.gnutar pkgs.xz pkgs.git pkgs.gnumake config.nix.package.out pkgs.commonsCompress ];
           script = ''
             export PATH=/run/current-system/sw/bin
             cd /etc/nixos/
-            make update nixos-switch
+            make switch
           '';
           startAt = cfg.dates;
           onFailure = [ "status-email-root@%n.service" ];
@@ -66,7 +65,6 @@ in
             // {
             inherit (config.environment.sessionVariables) NIX_PATH;
           };
-          path = [ pkgs.gnutar pkgs.xz pkgs.git ];
           script = ''
             export PATH=/run/current-system/sw/bin
             cd /etc/nixos/