blob: 984eace54ddc267603150cd6eaedc7ae34df50fa (
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;
}
|