Compare commits

...

2 commits

Author SHA1 Message Date
d2e782d7fe
enable soft-serve server on shadowfax 2024-09-14 18:43:15 -05:00
fd7e98aa15
fix templates 2024-09-14 17:32:11 -05:00
3 changed files with 60 additions and 5 deletions

View file

@ -12,7 +12,7 @@
" cfg = config.mySystem.${1:moduleName};",
"in",
"{",
" options.${1:moduleName} = {",
" options.mySystem.${1:moduleName} = {",
" enable = lib.mkEnableOption \"${2:Description of the module}\";",
" };",
"",
@ -32,7 +32,7 @@
" cfg = config.myHome.programs.${1:moduleName};",
"in",
"{",
" options.${1:moduleName} = {",
" options.myHome.programs.${1:moduleName} = {",
" enable = lib.mkEnableOption \"${2:Description of the module}\";",
" };",
"",

View 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"
];
}

View file

@ -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