From a1f7f43c95c049628e826856ec589b339cd4f5db Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 6 Aug 2021 18:51:59 +0200 Subject: initial commit --- nixos/services.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nixos/services.nix (limited to 'nixos/services.nix') 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 + ''; + }; + }; +} -- cgit v1.2.3