Update Snapper configs

This commit is contained in:
albert 2024-11-21 16:05:14 +01:00
parent ea4e2c4f9b
commit 60a6230bd4
Signed by: albert
GPG key ID: 3895DD267CA11BA9
3 changed files with 32 additions and 2 deletions

View file

@ -3,22 +3,40 @@
services.snapper = { services.snapper = {
snapshotRootOnBoot = true; snapshotRootOnBoot = true;
cleanupInterval = "7d"; cleanupInterval = "1d";
snapshotInterval = "hourly"; snapshotInterval = "hourly";
configs = { configs = {
root = { root = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
# TIMELINE_LIMIT_YEARLY = 0;
# TIMELINE_LIMIT_QUARTERLY = 2;
# TIMELINE_LIMIT_MONTHLY = 3;
# TIMELINE_LIMIT_WEEKLY = 4;
# TIMELINE_LIMIT_DAILY = 7;
# TIMELINE_LIMIT_HOURLY = 24;
SUBVOLUME = "/"; SUBVOLUME = "/";
}; };
home = { home = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
# TIMELINE_LIMIT_YEARLY = 0;
# TIMELINE_LIMIT_QUARTERLY = 2;
# TIMELINE_LIMIT_MONTHLY = 3;
# TIMELINE_LIMIT_WEEKLY = 4;
# TIMELINE_LIMIT_DAILY = 7;
# TIMELINE_LIMIT_HOURLY = 24;
SUBVOLUME = "/home"; SUBVOLUME = "/home";
}; };
nix = { nix = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
# TIMELINE_LIMIT_YEARLY = 0;
# TIMELINE_LIMIT_QUARTERLY = 2;
# TIMELINE_LIMIT_MONTHLY = 3;
# TIMELINE_LIMIT_WEEKLY = 4;
# TIMELINE_LIMIT_DAILY = 7;
# TIMELINE_LIMIT_HOURLY = 24;
SUBVOLUME = "/nix"; SUBVOLUME = "/nix";
}; };
}; };

View file

@ -5,6 +5,12 @@
services.snapper.configs.Storage = { services.snapper.configs.Storage = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
# TIMELINE_LIMIT_YEARLY = 0;
# TIMELINE_LIMIT_QUARTERLY = 2;
# TIMELINE_LIMIT_MONTHLY = 3;
# TIMELINE_LIMIT_WEEKLY = 4;
# TIMELINE_LIMIT_DAILY = 7;
# TIMELINE_LIMIT_HOURLY = 24;
SUBVOLUME = "/Storage"; SUBVOLUME = "/Storage";
}; };

View file

@ -5,6 +5,12 @@
services.snapper.configs.Local-Storage = { services.snapper.configs.Local-Storage = {
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
# TIMELINE_LIMIT_YEARLY = 0;
# TIMELINE_LIMIT_QUARTERLY = 2;
# TIMELINE_LIMIT_MONTHLY = 3;
# TIMELINE_LIMIT_WEEKLY = 4;
# TIMELINE_LIMIT_DAILY = 7;
# TIMELINE_LIMIT_HOURLY = 24;
SUBVOLUME = "/Local-Storage"; SUBVOLUME = "/Local-Storage";
}; };