From b52a4a23640fdc13628c90d25d18955adb2fd4a8 Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 28 Dec 2023 16:52:06 +0900 Subject: [PATCH] Add /Storage btrfs volume --- nixos/hosts/framework-server/disks.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nixos/hosts/framework-server/disks.nix b/nixos/hosts/framework-server/disks.nix index 00eaa44e..af3dfa05 100644 --- a/nixos/hosts/framework-server/disks.nix +++ b/nixos/hosts/framework-server/disks.nix @@ -5,6 +5,14 @@ # sudo btrfs subvolume create /.snapshots # sudo btrfs subvolume create /nix/.snapshots # sudo btrfs subvolume create /home/.snapshots + # sudo btrfs subvolume create /Storage/.snapshots + + # extra configs + services.snapper.configs.Storage = { + TIMELINE_CREATE = true; + TIMELINE_CLEANUP = true; + SUBVOLUME = "/Storage"; + }; services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly"; @@ -52,11 +60,10 @@ mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; # nix - # Re-add this on the next refomrat - # "/Storage" = { - # mountpoint = "/Storage"; - # mountOptions = [ "compress=zstd" "noatime" ]; - # }; # Storage + "/Storage" = { + mountpoint = "/Storage"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; # Storage }; # subvolumes }; # content.content }; # content