Add snapshot dirs

This commit is contained in:
iFargle 2023-12-28 18:28:29 +09:00
parent b52a4a2364
commit 2eba4b2c12

View file

@ -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