hades: setup restic backups

This commit is contained in:
Antoine Martin 2022-06-12 15:33:59 +02:00
parent 558ba2a685
commit baa239dc72
5 changed files with 25 additions and 2 deletions

View file

@ -55,12 +55,20 @@ in {
# List services that you want to enable:
my.services = {
fail2ban.enable = true;
restic-backup = {
enable = true;
repo = "b2:hades-backup-alarsyo";
passwordFile = config.age.secrets."restic-backup/hades-password".path;
environmentFile = config.age.secrets."restic-backup/hades-credentials".path;
paths = ["/home/alarsyo"];
};
tailscale = {
enable = true;
exitNode = true;
};
fail2ban.enable = true;
};
# Enable the OpenSSH daemon.

View file

@ -13,6 +13,9 @@
// attrs;
in
lib.mapAttrs toSecret {
"restic-backup/hades-credentials" = {};
"restic-backup/hades-password" = {};
"users/alarsyo-hashed-password" = {};
"users/root-hashed-password" = {};
};