mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-04-27 07:48:44 +02:00
35 lines
646 B
Nix
35 lines
646 B
Nix
|
|
# Deployed services
|
||
|
|
{ config, ... }:
|
||
|
|
let
|
||
|
|
inherit (config.sops) secrets;
|
||
|
|
in
|
||
|
|
{
|
||
|
|
sops.secrets = {
|
||
|
|
"borgbackup/password" = { };
|
||
|
|
"borgbackup/ssh_key" = { };
|
||
|
|
};
|
||
|
|
|
||
|
|
# List services that you want to enable:
|
||
|
|
my.services = {
|
||
|
|
backup = {
|
||
|
|
enable = true;
|
||
|
|
OnFailureMail = "server@buehler.rocks";
|
||
|
|
passwordFile = secrets."borgbackup/password".path;
|
||
|
|
sshKeyFile = secrets."borgbackup/ssh_key".path;
|
||
|
|
paths = [ "/" ];
|
||
|
|
};
|
||
|
|
# remote build
|
||
|
|
remote-build.enable = true;
|
||
|
|
|
||
|
|
ssh-server = {
|
||
|
|
enable = true;
|
||
|
|
};
|
||
|
|
initrd-ssh = {
|
||
|
|
enable = true;
|
||
|
|
};
|
||
|
|
vpn = {
|
||
|
|
enable = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|