diff --git a/flake.lock b/flake.lock index 93c3a79..1cf2a39 100644 --- a/flake.lock +++ b/flake.lock @@ -311,11 +311,11 @@ ] }, "locked": { - "lastModified": 1770250185, - "narHash": "sha256-WMjay2VqYKhggxr88arBPLL4Gel89p1yiJx9PKwUQ7g=", + "lastModified": 1770837448, + "narHash": "sha256-P+ZF6MeG7bs0vw+B9BjBbPHgZONakHnpM37dK8XG6LE=", "ref": "refs/heads/prod", - "rev": "5a3387ddb1e986813b6989af40f566e32ef3991e", - "revCount": 192, + "rev": "6f6f33495aa2aeff3ce30cb79343c6d6dffc63fa", + "revCount": 193, "type": "git", "url": "ssh://git@github.com/TheWanderingCrow/nix-secrets" }, diff --git a/hosts/nixos/HandlerOne/backup.nix b/hosts/nixos/HandlerOne/backup.nix index e0b68b4..537a16b 100644 --- a/hosts/nixos/HandlerOne/backup.nix +++ b/hosts/nixos/HandlerOne/backup.nix @@ -9,8 +9,6 @@ let paths = [ # Pocket-ID "/var/lib/pocket-id" - # homebox.nix - "/var/lib/homebox/data" "/var/lib/forgejo" "/var/lib/mealie" @@ -26,11 +24,6 @@ let "/var/lib/tuwunel" "/var/lib/paperless/export" - # flamesites - "${volumePath}/flamesites/swgalaxyproject" - "${volumePath}/flamesites/nnsbluegrass" - "/home/crow/swgalaxysite/public_html" - "/home/crow/flamebandsite/public_html" ]; }; in @@ -41,13 +34,32 @@ in }: { # Restic secrets - sops.secrets."restic/borg-base/url" = { }; - sops.secrets."restic/borg-base/key" = { }; + sops.secrets = { + "restic/borg-base/url" = { }; + "restic/borg-base/key" = { }; + "restic/hetzner-handlerone/url" = { }; + "restic/hetzner-handlerone/key" = { }; + }; services.restic.backups = { borg-base = restic-default // { repositoryFile = config.sops.secrets."restic/borg-base/url".path; passwordFile = config.sops.secrets."restic/borg-base/key".path; }; + hetzner-handlerone = { + initialize = true; + extraOptions = [ + "sftp.args='-i /etc/ssh/ssh_host_ed25519_key -p 23'" + ]; + repositoryFile = config.sops.secrets."restic/hetzner-handlerone/url".path; + passwordFile = config.sops.secrets."restic/hetzner-handlerone/key".path; + paths = [ + "${volumePath}/flamesites/swgalaxyproject" + "${volumePath}/flamesites/nnsbluegrass" + "/home/crow/swgalaxysite/public_html" + "/home/crow/flamebandsite/public_html" + ]; + } + // restic-default; }; }