This commit is contained in:
iFargle 2023-12-25 16:45:46 +09:00
parent 818c4bfaeb
commit 0b781d421b
2 changed files with 5 additions and 4 deletions

View file

@ -9,7 +9,7 @@
root = { root = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
SUBVOLUME = "/root"; SUBVOLUME = "/";
}; };
home = { home = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;

View file

@ -1,9 +1,10 @@
{ {
imports = [ ../../common/services/snapper.nix ]; imports = [ ../../common/services/snapper.nix ];
# You need to make the snapshot directories manually: # You need to make the snapshot directories manually:
# sudo btrfs subvolume create /.snapshots # sudo rm -rf /.snapshots /home/.snapshots /nix/.snapshots
# sudo btrfs subvolume create /nix/.snapshots # sudo btrfs subvolume create /.snapshots
# sudo btrfs subvolume create /home/.snapshots # sudo btrfs subvolume create /nix/.snapshots
# sudo btrfs subvolume create /home/.snapshots
services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.enable = true;
services.btrfs.autoScrub.interval = "weekly"; services.btrfs.autoScrub.interval = "weekly";