summaryrefslogtreecommitdiff
path: root/nixos/services.nix
blob: 720bf2b9ab5d5c5d59981f4744ac646313bbf346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, config, ... }:

{
  # List services that you want to enable:

  # Enable the OpenSSH daemon.
  # services.openssh.enable = true;

  services = {
    fcron = {
      enable = true;
      allow = [ "qaristote" ];
      systab = ''
        # Update the system.
        @daily root sudo ${pkgs.nix}/bin/nix-channel --update; sudo ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch
      '';
    };
  };
}