forked from Fachschaft/nixConfig
32 lines
577 B
Nix
32 lines
577 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|