diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-12-31 16:08:52 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-12-31 16:08:52 +0100 |
| commit | fab9a4ac53dd04b71dc8716a48b4767a3dcf1b02 (patch) | |
| tree | c2b90d83c708a694219f80d416f5c8715ecc966f | |
| parent | 8a7d4ca021289c04cd303da4914bacad6ddfa6cd (diff) | |
services : add cronjob to update venvs
| -rw-r--r-- | nixos/services.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/services.nix b/nixos/services.nix index 720bf2b..7e03f9b 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -12,7 +12,9 @@ allow = [ "qaristote" ]; systab = '' # Update the system. - @daily root sudo ${pkgs.nix}/bin/nix-channel --update; sudo ${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 reload \; ''; }; }; |
