nixos/machines/workman/services.nix

22 lines
471 B
Nix
Raw Normal View History

2025-05-04 20:20:28 +02:00
# Deployed services
{ config, ... }:
let
inherit (config.sops) secrets;
in
{
sops.secrets."borgbackup/password" = { };
sops.secrets."borgbackup/ssh_key" = { };
# List services that you want to enable:
my.services = {
backup = {
enable = true;
OnFailureNotification = true;
passwordFile = secrets."borgbackup/password".path;
sshKeyFile = secrets."borgbackup/ssh_key".path;
paths = [ "/" ];
};
vpn.enable = true;
};
}