1 { pkgs, lib, config, machineName, machines, ... }:
3 inherit (config) networking;
4 inherit (config.services) syncoid;
5 inherit (config.security) gnupg;
8 networking.nftables.ruleset = ''
9 add rule inet filter fw2net \
10 skuid "${syncoid.user}" \
12 ip daddr ${machines.mermet.extraArgs.ipv4} \
14 comment "SSH to mermet"
16 security.gnupg.secrets."ssh/backup.ssh-ed25519" = {
19 users.groups.keys.members = [ syncoid.user ];
22 interval = "*-*-* *:05:00";
24 sshKey = gnupg.secrets."ssh/backup.ssh-ed25519".path;
28 #"--no-privilege-elevation"
32 after = [ gnupg.secrets."ssh/backup.ssh-ed25519".service ];
33 wants = [ gnupg.secrets."ssh/backup.ssh-ed25519".service ];
36 "${machineName}/home/julm/work" = {
38 target = "backup@mermet.${networking.domain}:rpool/backup/${machineName}/home/julm/work";
40 "backup@mermet.${networking.domain}:rpool/var/mail" = {
42 target = "${machineName}/backup/mermet/var/mail";
44 "backup@mermet.${networking.domain}:rpool/var/public-inbox" = {
46 target = "${machineName}/backup/mermet/var/public-inbox";
48 "backup@mermet.${networking.domain}:rpool/var/www" = {
50 target = "${machineName}/backup/mermet/var/www";
52 "backup@mermet.${networking.domain}:rpool/var/git" = {
54 target = "${machineName}/backup/mermet/var/git";
56 "backup@mermet.${networking.domain}:rpool/var/redis" = {
58 target = "${machineName}/backup/mermet/var/redis";
60 "backup@mermet.${networking.domain}:rpool/home/julm/mail" = {
62 target = "${machineName}/backup/mermet/home/julm/mail";
64 "backup@mermet.${networking.domain}:rpool/home/julm/log" = {
66 target = "${machineName}/backup/mermet/home/julm/log";