Create backuphost Bragi

This commit is contained in:
Gonne 2023-12-18 17:55:00 +01:00
parent 45d0ef262f
commit e856d641e9
4 changed files with 92 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
config,
lib,
...
}: let
inherit
(lib)
mkIf
mkEnableOption
;
cfg = config.services.mathebau-borgbackup;
in {
imports = [];
options.services.mathebau-borgbackup = {
enable = mkEnableOption "mathebau borgbackup service";
};
config = mkIf cfg.enable {
services.borgbackup = {
repos = {
cthulhu = {
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMSJl1MvabUADTdOCgufsBzn1tIIpxMq4iDcYZsaW1lV Cthulhu Backup"
];
path = "/var/lib/cthulhu";
};
};
};
};
}