From 2eac73c10d7979c8b1c71006a2445dfbebc3c22b Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 25 Dec 2023 18:20:48 +0900 Subject: [PATCH] Update disks --- nixos/hosts/nixos-framework/disks.nix | 7 ++++--- nixos/hosts/nuc-server/disks.nix | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/nixos/hosts/nixos-framework/disks.nix b/nixos/hosts/nixos-framework/disks.nix index e3a56f72..259a7554 100644 --- a/nixos/hosts/nixos-framework/disks.nix +++ b/nixos/hosts/nixos-framework/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"; diff --git a/nixos/hosts/nuc-server/disks.nix b/nixos/hosts/nuc-server/disks.nix index 4bf5f1b2..e6b75dbe 100644 --- a/nixos/hosts/nuc-server/disks.nix +++ b/nixos/hosts/nuc-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";