hades: setup restic backups
This commit is contained in:
parent
558ba2a685
commit
baa239dc72
5 changed files with 25 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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" = {};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue