nixos-conf/modules/services/borg-server.nix

17 lines
373 B
Nix
Raw Normal View History

2025-07-20 01:25:42 +03:00
{ 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 ];
};
};
};
}