Update nuc-server disk

This commit is contained in:
albert 2024-11-20 21:28:37 +01:00
parent 0e60dd81fc
commit 17a19c28a9
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -1,6 +1,13 @@
{ {
imports = [ ../../common/services/snapper.nix ]; 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.enable = true;
services.btrfs.autoScrub.interval = "weekly"; services.btrfs.autoScrub.interval = "weekly";
@ -47,6 +54,10 @@
mountpoint = "/nix"; mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; # nix }; # nix
"/Local-Storage" = {
mountpoint = "/Local-Storage";
mountOptions = [ "compress=zstd" "noatime" ];
}; # Local-Storage
# SNAPSHOT SUBVOLS # SNAPSHOT SUBVOLS
"/root/.snapshots" = { "/root/.snapshots" = {
mountpoint = "/.snapshots"; mountpoint = "/.snapshots";
@ -60,6 +71,10 @@
mountpoint = "/nix/.snapshots"; mountpoint = "/nix/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; # nix }; # nix
"/Local-Storage/.snapshots" = {
mountpoint = "/Storage/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ];
}; # Local-Storage
}; # subvolumes }; # subvolumes
}; # content.content }; # content.content
}; # content }; # content