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 = {
TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true;
SUBVOLUME = "/root";
SUBVOLUME = "/";
};
home = {
TIMELINE_CREATE = true;

View file

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