From 1df6cd6763d3b78bec6cd5b0c0527c35371ea6f1 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 14 Jan 2023 20:24:06 +0100 Subject: [PATCH] hosts: move from snapper to btrbk fix --- hosts/nas/hardware-configuration.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hosts/nas/hardware-configuration.nix b/hosts/nas/hardware-configuration.nix index 015b5bb..0147634 100644 --- a/hosts/nas/hardware-configuration.nix +++ b/hosts/nas/hardware-configuration.nix @@ -52,17 +52,16 @@ instances = { hf = { settings = { - incremental = yes; + incremental = "yes"; snapshot_create = "ondemand"; - snapshot_dir = "/mnt/snapshots"; + snapshot_dir = "@snapshots"; snapshot_preserve = "2m 2w 5d 5h"; snapshot_preserve_min = "latest"; onCalender = "hourly"; volume = { - "/" = { - snapshot_dir = /mnt/snapshots/root; + "/mnt/snapshots/root" = { snapshot_create = "always"; subvolume = "@home"; }; @@ -100,7 +99,7 @@ fileSystems."/mnt/snapshots/root" = { device = "/dev/disk/by-label/NIXROOT"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@snapshots,discard=async" ]; + options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ]; }; fileSystems."/mnt/snapshots/Mars" =