From 17a19c28a9f18738934f8225e5672b06436dac88 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 20 Nov 2024 21:28:37 +0100 Subject: [PATCH] Update nuc-server disk --- nixos/hosts/nuc-server/disks.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/hosts/nuc-server/disks.nix b/nixos/hosts/nuc-server/disks.nix index 7e9857eb..a3daa8a5 100644 --- a/nixos/hosts/nuc-server/disks.nix +++ b/nixos/hosts/nuc-server/disks.nix @@ -1,6 +1,13 @@ { imports = [ ../../common/services/snapper.nix ]; + # extra configs not present in the standard config above + services.snapper.configs.Local-Storage = { + TIMELINE_CREATE = true; + TIMELINE_CLEANUP = true; + SUBVOLUME = "/Local-Storage"; + }; + services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly"; @@ -47,6 +54,10 @@ mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; # nix + "/Local-Storage" = { + mountpoint = "/Local-Storage"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; # Local-Storage # SNAPSHOT SUBVOLS "/root/.snapshots" = { mountpoint = "/.snapshots"; @@ -60,6 +71,10 @@ mountpoint = "/nix/.snapshots"; mountOptions = [ "compress=zstd" "noatime" ]; }; # nix + "/Local-Storage/.snapshots" = { + mountpoint = "/Storage/.snapshots"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; # Local-Storage }; # subvolumes }; # content.content }; # content