summaryrefslogtreecommitdiff
path: root/nixos/services.nix
blob: 19f61ff64777990f1d623ae0bcd873e1390cb01c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ 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 reload \;
      '';
    };
  };
}