Compare commits
9 commits
master
...
feat/resti
| Author | SHA1 | Date | |
|---|---|---|---|
| d2fbc73636 | |||
| 4b2270e57a | |||
| ac2690c973 | |||
| 985b617be1 | |||
| d64c23ce97 | |||
| 3f175d1b96 | |||
| e8b675e606 | |||
| 9724f1d731 | |||
| 49bc50ae39 |
9 changed files with 80 additions and 1 deletions
|
|
@ -33,9 +33,11 @@
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./networking.nix
|
|
||||||
./home.syncthing.nix
|
./home.syncthing.nix
|
||||||
|
./networking.nix
|
||||||
|
./restic.nix
|
||||||
./samba.nix
|
./samba.nix
|
||||||
|
./snapper.nix
|
||||||
|
|
||||||
../../users/hana
|
../../users/hana
|
||||||
];
|
];
|
||||||
|
|
|
||||||
31
hosts/alyssum/restic.nix
Normal file
31
hosts/alyssum/restic.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ config, lib, ... }: {
|
||||||
|
age.secrets.restic_env.file = ../../secrets/restic_env.age;
|
||||||
|
age.secrets.restic_pass.file = ../../secrets/restic_pass.age;
|
||||||
|
age.secrets.restic_url.file = ../../secrets/restic_url.age;
|
||||||
|
|
||||||
|
services.restic.backups."flower" = {
|
||||||
|
initialize = true;
|
||||||
|
createWrapper = true;
|
||||||
|
progressFps = 0.016666;
|
||||||
|
|
||||||
|
environmentFile = config.age.secrets.restic_env.path;
|
||||||
|
passwordFile = config.age.secrets.restic_pass.path;
|
||||||
|
repositoryFile = config.age.secrets.restic_url.path;
|
||||||
|
|
||||||
|
paths = ["/flower"];
|
||||||
|
exclude = ["/flower/.snapshots"]
|
||||||
|
++ builtins.filter (x: lib.strings.hasPrefix "/flower" x) (builtins.attrNames config.me.binds);
|
||||||
|
timerConfig = {
|
||||||
|
# every 6 hours
|
||||||
|
OnCalendar = "*-*-* 00,06,12,18:00:00";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
pruneOpts = [
|
||||||
|
"--keep-last 8"
|
||||||
|
"--keep-daily 7"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 75"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
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"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
core.abbrev = 11;
|
core.abbrev = 11;
|
||||||
safe.directory = "/home/rin/Projects/flakes";
|
safe.directory = "/home/rin/Projects/flakes";
|
||||||
init.defaultBranch = "master";
|
init.defaultBranch = "master";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@ in {
|
||||||
"secrets/passwd_smbkujira.age".publicKeys = [ alyssum rin ];
|
"secrets/passwd_smbkujira.age".publicKeys = [ alyssum rin ];
|
||||||
"secrets/wpa_conf.age".publicKeys = [ alyssum blossom rin ];
|
"secrets/wpa_conf.age".publicKeys = [ alyssum blossom rin ];
|
||||||
|
|
||||||
|
"secrets/restic_env.age".publicKeys = [ alyssum dandelion rin ];
|
||||||
|
"secrets/restic_pass.age".publicKeys = [ alyssum dandelion rin ];
|
||||||
|
"secrets/restic_url.age".publicKeys = [ alyssum dandelion rin ];
|
||||||
|
|
||||||
"secrets/acme_dns.age".publicKeys = [ alyssum dandelion hazel rin ];
|
"secrets/acme_dns.age".publicKeys = [ alyssum dandelion hazel rin ];
|
||||||
"secrets/navidrome_env.age".publicKeys = [ alyssum dandelion rin ];
|
"secrets/navidrome_env.age".publicKeys = [ alyssum dandelion rin ];
|
||||||
"secrets/slskd_env.age".publicKeys = [ anemone dandelion rin ];
|
"secrets/slskd_env.age".publicKeys = [ anemone dandelion rin ];
|
||||||
|
|
|
||||||
10
secrets/restic_env.age
Normal file
10
secrets/restic_env.age
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 kOMSPw CYNG6K56RVMY5KP3vTczaCG9DVL3Ryv7QtqRzrdONh4
|
||||||
|
VKH43RjHzP2TcyK8bEO8pZzZZeXqNXEDNq4JCkhMXlQ
|
||||||
|
-> ssh-ed25519 bRFqeQ AmuEljYrO5qqhaJQONYxQZTlaid2qNt+kktiMRDSKl4
|
||||||
|
u+KzYFuEx+UCBfdcpup0fbEp1vGMP24nE3MwvcjhTSc
|
||||||
|
-> ssh-ed25519 U9FXlg IKN6gdqtD0FDOBk5vXuLD7AYuRtCGsIe5CYMJwyvcG4
|
||||||
|
f5lkALvyjz1X94JmnG4u9kZ0S1TgZeBv+uxumFPChzQ
|
||||||
|
--- 3LBfI6E7NfSK1F42/cQkUzrpry6OWCeW/67YOpZe00k
|
||||||
|
8Ä<EFBFBD>gé†Òî9(<Ý9OT.L_C2ûXT¿1Lô‡=¨3ÓÞØWCÓo¾ze?4ƒsUÁ.Ã<zø¤ëI…ºèyŠÔÕ,bPü?žžå(Òb»¬?7„é„dÕƒU€*-<Ãò줯aDÖ<44>‰±éþ^,?3¼Ü ðE²ább«
|
||||||
|
vHÇ
|
||||||
BIN
secrets/restic_pass.age
Normal file
BIN
secrets/restic_pass.age
Normal file
Binary file not shown.
9
secrets/restic_url.age
Normal file
9
secrets/restic_url.age
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 kOMSPw l9/BY4rhuzGl/MRKjJ6Hyz2AGpsIZlDojQhSzJ8IxzY
|
||||||
|
tEGqxZOEWHZvTazrDoC4uTOyuT7fgRKXxumxpjdE89o
|
||||||
|
-> ssh-ed25519 bRFqeQ XQ1wRRwOP1bIiEX/Dh4tkHB3vF1OdZcLNTtVVM1oWgU
|
||||||
|
S6qXQsPNY0bGaUz+iLoJ0GBL26FtM4h/sgxqvIwOS3g
|
||||||
|
-> ssh-ed25519 U9FXlg pmY+R/M38tLi1dq2ll9FDv6uaGv8XlkE99NoAemtlGY
|
||||||
|
FGZodar5ESxmOZYDZ0F8P1FXNzkEpqT6jyJgzY5wLc0
|
||||||
|
--- ig7eZey8XraBclyUEJRv1lJUyiOjqsfGc8Q+jjbAuvQ
|
||||||
|
e˜Ä¶Š@‰zYþäö¶µtÒÁØ÷Vï4%s29>§íªéÿé–‡(<28>y8Â% ªj|PÓѨ:»©<C2BB>:å-˜Y´I±Òä )C̹ÝI%yÙ¸:îLC¯f¨q_
|
||||||
Loading…
Add table
Add a link
Reference in a new issue