Add snapshot dirs
This commit is contained in:
parent
b52a4a2364
commit
2eba4b2c12
1 changed files with 18 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
# sudo btrfs subvolume create /home/.snapshots
|
||||
# sudo btrfs subvolume create /Storage/.snapshots
|
||||
|
||||
# extra configs
|
||||
# extra configs not present in the standard config above
|
||||
services.snapper.configs.Storage = {
|
||||
TIMELINE_CREATE = true;
|
||||
TIMELINE_CLEANUP = true;
|
||||
|
@ -64,6 +64,23 @@
|
|||
mountpoint = "/Storage";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # Storage
|
||||
# SNAPSHOT SUBVOLS
|
||||
"/root/.snapshots" = {
|
||||
mountpoint = "/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # root
|
||||
"/home/.snapshots" = {
|
||||
mountpoint = "/home/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # home
|
||||
"/nix/.snapshots" = {
|
||||
mountpoint = "/nix/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix
|
||||
"/Storage/.snapshots" = {
|
||||
mountpoint = "/Storage/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # Storage
|
||||
}; # subvolumes
|
||||
}; # content.content
|
||||
}; # content
|
||||
|
|
Loading…
Reference in a new issue