diff --git a/nixos/common/services/snapper.nix b/nixos/common/services/snapper.nix index f56126df..fed7d874 100644 --- a/nixos/common/services/snapper.nix +++ b/nixos/common/services/snapper.nix @@ -9,7 +9,7 @@ root = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; - SUBVOLUME = "/root"; + SUBVOLUME = "/"; }; home = { TIMELINE_CREATE = true; diff --git a/nixos/hosts/framework-server/disks.nix b/nixos/hosts/framework-server/disks.nix index 30d4d3db..00eaa44e 100644 --- a/nixos/hosts/framework-server/disks.nix +++ b/nixos/hosts/framework-server/disks.nix @@ -1,9 +1,10 @@ { imports = [ ../../common/services/snapper.nix ]; # You need to make the snapshot directories manually: - # sudo btrfs subvolume create /.snapshots - # sudo btrfs subvolume create /nix/.snapshots - # sudo btrfs subvolume create /home/.snapshots + # sudo rm -rf /.snapshots /home/.snapshots /nix/.snapshots + # sudo btrfs subvolume create /.snapshots + # sudo btrfs subvolume create /nix/.snapshots + # sudo btrfs subvolume create /home/.snapshots services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly";