From ea9b14c243031008e3a728c4e18c251db97a14ca Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 26 Aug 2023 10:40:26 +0900 Subject: feat(nixos/alpha): enable zfs auto snapshot --- nixos/alpha/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nixos/alpha') 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; -- cgit 1.4.1