From 0b781d421bf59e77b503f8348973863c31f5ff51 Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 25 Dec 2023 16:45:46 +0900 Subject: [PATCH] test --- nixos/common/services/snapper.nix | 2 +- nixos/hosts/framework-server/disks.nix | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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";