diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-08-06 18:51:59 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-08-06 18:51:59 +0200 |
| commit | a1f7f43c95c049628e826856ec589b339cd4f5db (patch) | |
| tree | a0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /nixos/services.nix | |
initial commit
Diffstat (limited to 'nixos/services.nix')
| -rw-r--r-- | nixos/services.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/services.nix b/nixos/services.nix new file mode 100644 index 0000000..720bf2b --- /dev/null +++ b/nixos/services.nix @@ -0,0 +1,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 + ''; + }; + }; +} |
