enable soft-serve server on shadowfax
This commit is contained in:
parent
fd7e98aa15
commit
d2e782d7fe
2 changed files with 58 additions and 3 deletions
46
nixos/hosts/shadowfax/config/soft-serve.nix
Normal file
46
nixos/hosts/shadowfax/config/soft-serve.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ ... }:
|
||||
{
|
||||
name = "Soft Serve";
|
||||
log = {
|
||||
format = "text";
|
||||
time_format = "2006-01-02 15:04:05";
|
||||
};
|
||||
ssh = {
|
||||
listen_addr = ":23231";
|
||||
public_url = "ssh://10.1.1.61:23231";
|
||||
key_path = "ssh/soft_serve_host_ed25519";
|
||||
client_key_path = "ssh/soft_serve_client_ed25519";
|
||||
max_timeout = 0;
|
||||
idle_timeout = 600;
|
||||
};
|
||||
git = {
|
||||
listen_addr = ":9418";
|
||||
public_url = "git://10.1.1.61";
|
||||
max_timeout = 0;
|
||||
idle_timeout = 3;
|
||||
max_connections = 32;
|
||||
};
|
||||
http = {
|
||||
listen_addr = ":23232";
|
||||
tls_key_path = null;
|
||||
tls_cert_path = null;
|
||||
public_url = "http://10.1.1.61:23232";
|
||||
};
|
||||
stats = {
|
||||
listen_addr = "10.1.1.61:23233";
|
||||
};
|
||||
db = {
|
||||
driver = "sqlite";
|
||||
data_source = "soft-serve.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)";
|
||||
};
|
||||
lfs = {
|
||||
enabled = true;
|
||||
ssh_enabled = false;
|
||||
};
|
||||
jobs = {
|
||||
mirror_pull = "@every 10m";
|
||||
};
|
||||
initial_admin_keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILcLI5qN69BuoLp8p7nTYKoLdsBNmZB31OerZ63Car1g jahanson@telchar"
|
||||
];
|
||||
}
|
|
@ -38,9 +38,18 @@ in
|
|||
# VSCode Compatibility Settings
|
||||
nix-ld.enable = true;
|
||||
};
|
||||
# VSCode Compatibility Settings
|
||||
services.vscode-server = {
|
||||
enable = true;
|
||||
|
||||
services = {
|
||||
# Soft Serve
|
||||
soft-serve = {
|
||||
enable = true;
|
||||
settings = import ./config/soft-serve.nix { };
|
||||
};
|
||||
|
||||
# VSCode Compatibility Settings
|
||||
vscode-server = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Home Manager
|
||||
|
|
Loading…
Reference in a new issue