blob: 665477cf8de48e88c33ba1f4f051370d75b658b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ pkgs, config, ... }:
{
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services = {
fcron = {
enable = true;
allow = [ "root" "qaristote" ];
systab = ''
# Update the system.
@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 \;
'';
};
};
virtualisation.docker.enable = true;
}
|