From 833b5e89afa2073919508cc73534a92dd26fc97e Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sun, 29 Dec 2024 23:15:56 -0500 Subject: Extend browser config and setup automatic snapshots --- machines/xnet/disk.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'machines/xnet/disk.nix') diff --git a/machines/xnet/disk.nix b/machines/xnet/disk.nix index caef61d..26b6909 100644 --- a/machines/xnet/disk.nix +++ b/machines/xnet/disk.nix @@ -47,7 +47,7 @@ in boot = { kernelParams = [ "nohibernate" "elevator=none" ]; supportedFilesystems = [ "vfat" "zfs" ]; - zfs.devNodes = "/dev/disk/by-partuuid"; + zfs.devNodes = mkDefault "/dev/disk/by-partuuid"; loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; @@ -135,5 +135,20 @@ in }; }; }; + + services.sanoid = { + enable = true; + templates.default = { + autosnap = true; + autoprune = true; + hourly = 24; + daily = 14; + monthly = 1; + }; + datasets."zroot/persist" = { + useTemplate = [ "default" ]; + recursive = true; + }; + }; }; } -- cgit v1.3.1