configuration
flake
hosts
_iso
aluminium
astatine
backup-4
beryllium
carbon
clerie-backup
dn42-il-gw1
dn42-il-gw5
dn42-il-gw6
dn42-ildix-clerie
dn42-ildix-service
gatekeeper
hydra-1
hydra-2
krypton
mail-2
monitoring-3
nonat
osmium
palladium
configuration.nix
hardware-configuration.nix
restic-server.nix
secrets.json
ssh.pub
wg-b-palladium.nix
porter
storage-2
tungsten
web-2
zinc
lib
modules
pkgs
profiles
users
.gitignore
README.md
flake.lock
flake.nix
21 lines
518 B
Nix
21 lines
518 B
Nix
{ ... }:
|
|
|
|
{
|
|
services.restic.server = {
|
|
enable = true;
|
|
privateRepos = true;
|
|
dataDir = "/data/backup";
|
|
listenAddress = "[::]:43242";
|
|
};
|
|
|
|
# restic rest server does not support --htpasswd-file in the current version of nixpkgs
|
|
# until then we copy the secrets to the common location
|
|
sops.secrets.restic-server-backup-htpasswd = {
|
|
path = "/data/backup/.htpasswd";
|
|
owner = "restic";
|
|
group = "restic";
|
|
};
|
|
|
|
networking.firewall.interfaces.wg-b-palladium.allowedTCPPorts = [ 43242 ];
|
|
}
|