about summary refs log tree commit diff
path: root/nixos/alpha/configuration.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-26 10:40:26 +0900
committersefidel <contact@sefidel.net>2023-08-26 10:40:26 +0900
commitea9b14c243031008e3a728c4e18c251db97a14ca (patch)
treeebe3245af637798ebf11d4eea9b26c6e2b75ebe6 /nixos/alpha/configuration.nix
parent9d6c676b8907003ad716dc08e92794643ec078cc (diff)
downloadnixrc-ea9b14c243031008e3a728c4e18c251db97a14ca.tar.gz
nixrc-ea9b14c243031008e3a728c4e18c251db97a14ca.zip
feat(nixos/alpha): enable zfs auto snapshot
Diffstat (limited to 'nixos/alpha/configuration.nix')
-rw-r--r--nixos/alpha/configuration.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 329422e..a0f2e11 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -96,7 +96,10 @@
   services.zfs.autoScrub.enable = true;
   services.zfs.autoScrub.pools = [ "rpool" ];
 
-
+  # NOTE: `com.sun:auto-snapshot` property must be set to true on datasets you
+  # wish to snapshot
+  services.zfs.autoSnapshot.enable = true;
+  services.zfs.autoSnapshot.flags = "-k -p --utc";
 
   services.openssh.enable = true;
   services.openssh.settings.PasswordAuthentication = false;