summaryrefslogtreecommitdiff
path: root/nixos/services.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
commita1f7f43c95c049628e826856ec589b339cd4f5db (patch)
treea0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /nixos/services.nix
initial commit
Diffstat (limited to 'nixos/services.nix')
-rw-r--r--nixos/services.nix19
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
+ '';
+ };
+ };
+}