diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-04-16 17:54:20 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-04-16 17:54:20 +0200 |
| commit | ad8beab1ec548b52088aa6788b03ec01daf0f84d (patch) | |
| tree | c26c161f9535c30423a904e2ac7816eafd2b4830 /nixos | |
| parent | 8aafb45f680a004a625755193f7396e4034f4aa5 (diff) | |
auto upgrades: use built-in option instead of cron job
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/configuration.nix | 4 | ||||
| -rw-r--r-- | nixos/services.nix | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7306ccb..7252744 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -34,6 +34,10 @@ options = "--delete-old"; }; }; + system.autoUpgrade = { + enable = true; + flags = [ "--upgrade-all" ]; + } # Some programs need SUID wrappers, can be configured further or are # started in user sessions. diff --git a/nixos/services.nix b/nixos/services.nix index 665477c..fa05a3b 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -12,7 +12,7 @@ allow = [ "root" "qaristote" ]; systab = '' # Update the system. - @daily root ${pkgs.nix}/bin/nix-channel --update; ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch + # @daily root ${pkgs.nix}/bin/nix-channel --update; ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch # Update virtual environments @daily qaristote find /home/qaristote -type d -name .nix-gc-roots -execdir ${pkgs.direnv}/bin/direnv exec . true \; ''; |
