16 lines
373 B
Nix
16 lines
373 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.custom.services.borgServer;
|
|
in
|
|
{
|
|
options.custom.services.borgServer.enable = lib.mkEnableOption "the BorgBackup server";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.borgbackup.repos = {
|
|
lithium = {
|
|
path = "/persist/borg/lithium";
|
|
authorizedKeys = [ config.custom.sshKeys.lithium ];
|
|
};
|
|
};
|
|
};
|
|
}
|