Compare commits
3 commits
3f175d1b96
...
ac2690c973
| Author | SHA1 | Date | |
|---|---|---|---|
| ac2690c973 | |||
| 985b617be1 | |||
| d64c23ce97 |
4 changed files with 27 additions and 4 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./samba.nix
|
./samba.nix
|
||||||
|
./snapper.nix
|
||||||
|
|
||||||
../../users/hana
|
../../users/hana
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,14 @@
|
||||||
repositoryFile = config.age.secrets.restic_url.path;
|
repositoryFile = config.age.secrets.restic_url.path;
|
||||||
|
|
||||||
paths = ["/flower"];
|
paths = ["/flower"];
|
||||||
|
exclude = ["/.snapshots"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
# every 30mns
|
# every 6 hours
|
||||||
OnCalendar = "*-*-* *:00,30:00";
|
OnCalendar = "*-*-* 00,06,12,18:00:00";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
"--keep-last 24"
|
"--keep-last 8"
|
||||||
"--keep-hourly 24"
|
|
||||||
"--keep-daily 7"
|
"--keep-daily 7"
|
||||||
"--keep-weekly 5"
|
"--keep-weekly 5"
|
||||||
"--keep-monthly 12"
|
"--keep-monthly 12"
|
||||||
|
|
|
||||||
19
hosts/alyssum/snapper.nix
Normal file
19
hosts/alyssum/snapper.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -10,4 +10,7 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
useRoutingFeatures = if config.me.environment == "headless" then "both" else "client";
|
useRoutingFeatures = if config.me.environment == "headless" then "both" else "client";
|
||||||
};
|
};
|
||||||
|
systemd.services.tailscaled.serviceConfig.LogFilterPatterns = [
|
||||||
|
"~magicsock.*does not know about peer.*removing route"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue