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