Update nuc-server disk
This commit is contained in:
parent
0e60dd81fc
commit
17a19c28a9
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue