Install soft-serve on ninurta
This commit is contained in:
parent
4225de2ae9
commit
9480ab3246
7 changed files with 280 additions and 5 deletions
|
@ -11,6 +11,7 @@ let
|
|||
wg0PresharedKey = "pruflas-wg0-preshared-key";
|
||||
hydraGitHubAuth = "hydra-github-authorization";
|
||||
initrdSshKey = "/etc/ssh/ssh_initrd_ed25519_key";
|
||||
softServePort = 23231;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -18,6 +19,22 @@ in
|
|||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
services.soft-serve = {
|
||||
enable = true;
|
||||
settings = {
|
||||
name = "dadada's repos";
|
||||
log_format = "text";
|
||||
ssh = {
|
||||
listen_addr = ":${toString softServePort}";
|
||||
public_url = "ssh://soft-serve.dadada.li:${toString softServePort}";
|
||||
max_timeout = 30;
|
||||
idle_timeout = 120;
|
||||
};
|
||||
stats.listen_addr = ":23233";
|
||||
initial_admin_keys = config.dadada.admin.users.dadada.keys;
|
||||
};
|
||||
};
|
||||
|
||||
dadada.backupClient.bs.enable = false;
|
||||
dadada.backupClient.backup1.enable = false;
|
||||
|
||||
|
@ -75,7 +92,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
dadada.ddns.domains = [ "backup1.dadada.li" ];
|
||||
dadada.ddns.domains = [ "backup1.dadada.li" "soft-serve.dadada.li" ];
|
||||
dadada.ddns.credentialsPath = config.age.secrets."ddns-credentials".path;
|
||||
dadada.ddns.interface = "backup";
|
||||
|
||||
|
@ -350,6 +367,7 @@ in
|
|||
80 # HTTP
|
||||
443 # HTTPS
|
||||
3000 # Hydra
|
||||
softServePort
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
51234 # Wireguard
|
||||
|
@ -384,8 +402,6 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
cpuFreqGovernor = "powersave";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue