nixos/machines/thinkman/services.nix

22 lines
471 B
Nix
Raw Normal View History

2022-12-04 18:06:51 +01:00
# Deployed services
2023-11-07 22:00:00 +01:00
{ config, ... }:
2022-12-04 18:06:51 +01:00
let
2023-11-07 23:13:51 +01:00
inherit (config.sops) secrets;
2022-12-04 18:06:51 +01:00
in
{
sops.secrets."borgbackup/password" = { };
2023-02-05 19:04:16 +01:00
sops.secrets."borgbackup/ssh_key" = { };
2022-12-04 18:06:51 +01:00
# List services that you want to enable:
my.services = {
backup = {
enable = true;
OnFailureNotification = true;
passwordFile = secrets."borgbackup/password".path;
2023-02-05 19:04:16 +01:00
sshKeyFile = secrets."borgbackup/ssh_key".path;
paths = [ "/" ];
2022-12-04 18:06:51 +01:00
};
2025-01-20 23:46:20 +01:00
vpn.enable = true;
2022-12-04 18:06:51 +01:00
};
}