mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-04-27 07:48:44 +02:00
machine/playman: init
This commit is contained in:
parent
be973e1d11
commit
2a44b8e852
15 changed files with 265 additions and 8 deletions
34
machines/playman/services.nix
Normal file
34
machines/playman/services.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue