mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
20 lines
446 B
Nix
20 lines
446 B
Nix
![]() |
# Deployed services
|
||
|
{ config, lib, ... }:
|
||
|
let
|
||
|
secrets = config.sops.secrets;
|
||
|
in
|
||
|
{
|
||
|
sops.secrets."borgbackup/password" = { };
|
||
|
sops.secrets."borgbackup/private_ssh_key" = { };
|
||
|
|
||
|
# List services that you want to enable:
|
||
|
my.services = {
|
||
|
backup = {
|
||
|
enable = true;
|
||
|
OnFailureNotification = true;
|
||
|
passwordFile = secrets."borgbackup/password".path;
|
||
|
sshKeyFile = secrets."borgbackup/private_ssh_key".path;
|
||
|
};
|
||
|
};
|
||
|
}
|