alyssum/snapper: init
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run

This commit is contained in:
Cilly Leang 2026-06-19 10:37:25 +10:00
parent 985b617be1
commit ac2690c973
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 21 additions and 0 deletions

View file

@ -37,6 +37,7 @@
./networking.nix ./networking.nix
./restic.nix ./restic.nix
./samba.nix ./samba.nix
./snapper.nix
../../users/hana ../../users/hana
]; ];

View file

@ -13,6 +13,7 @@
repositoryFile = config.age.secrets.restic_url.path; repositoryFile = config.age.secrets.restic_url.path;
paths = ["/flower"]; paths = ["/flower"];
exclude = ["/.snapshots"];
timerConfig = { timerConfig = {
# every 6 hours # every 6 hours
OnCalendar = "*-*-* 00,06,12,18:00:00"; OnCalendar = "*-*-* 00,06,12,18:00:00";

19
hosts/alyssum/snapper.nix Normal file
View file

@ -0,0 +1,19 @@
{ ... }: {
services.snapper = {
cleanupInterval = "1h";
persistentTimer = true;
snapshotInterval = "*-*-* *:00,30:00";
configs.home = {
FSTYPE = "btrfs";
SUBVOLUME = "/flower";
TIMELINE_CLEANUP = true;
TIMELINE_CREATE = true;
TIMELINE_MIN_AGE = "86400";
TIMELINE_LIMIT_HOURLY = "24";
TIMELINE_LIMIT_DAILY = "7";
TIMELINE_LIMIT_WEEKLY = "5";
TIMELINE_LIMIT_MONTHLY = "3";
TIMELINE_LIMIT_YEARLY = "0";
};
};
}