Compare commits

..

3 commits

Author SHA1 Message Date
ac2690c973
alyssum/snapper: init
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
2026-06-19 10:37:25 +10:00
985b617be1
system/tailscale: filter out derp warning spam 2026-06-19 10:26:14 +10:00
d64c23ce97
alyssum/restic: backup less frequently 2026-06-19 10:20:00 +10:00
4 changed files with 27 additions and 4 deletions

View file

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

View file

@ -13,14 +13,14 @@
repositoryFile = config.age.secrets.restic_url.path;
paths = ["/flower"];
exclude = ["/.snapshots"];
timerConfig = {
# every 30mns
OnCalendar = "*-*-* *:00,30:00";
# every 6 hours
OnCalendar = "*-*-* 00,06,12,18:00:00";
Persistent = true;
};
pruneOpts = [
"--keep-last 24"
"--keep-hourly 24"
"--keep-last 8"
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"

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";
};
};
}

View file

@ -10,4 +10,7 @@
openFirewall = true;
useRoutingFeatures = if config.me.environment == "headless" then "both" else "client";
};
systemd.services.tailscaled.serviceConfig.LogFilterPatterns = [
"~magicsock.*does not know about peer.*removing route"
];
}