diff options
author | tdback <tyler@tdback.net> | 2025-01-26 11:31:00 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-26 11:31:00 -0500 |
commit | a7c3d07078d0ca67afadd6fb24ab4b60b38c1109 (patch) | |
tree | b214be5bc6bd1ea67c0499ee54ce3ec06565e929 /hosts/frigg/modules | |
parent | 63883c4dea9ca50a4fd8756323ab04bf66e3dd3d (diff) |
hosts: overhauled host configurations
Diffstat (limited to 'hosts/frigg/modules')
-rw-r--r-- | hosts/frigg/modules/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/hosts/frigg/modules/default.nix b/hosts/frigg/modules/default.nix new file mode 100644 index 0000000..68ac7f3 --- /dev/null +++ b/hosts/frigg/modules/default.nix @@ -0,0 +1,57 @@ +{ + config, + ... +}: +{ + modules = { + customs.cgit = { + enable = true; + scanPath = "/tank/git"; + url = "git.tdback.net"; + authorizedKeys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEzLpTEoej7P04KoNzokQ9IOnNZiKyi2+YQ8yU5WSKCb" + ]; + settings = { + root-title = "git.tdback.net"; + root-desc = "tdback's git repositories"; + enable-index-links = 1; + enable-index-owner = 0; + enable-commit-graph = 1; + enable-log-filecount = 1; + enable-log-linecount = 1; + readme = ":README.md"; + }; + }; + services.llm = { + enable = true; + port = 11111; + networkRange = "10.44.0.0/16"; + nvidiaGpu = true; + models = [ + "mistral" + "llama3.2" + ]; + }; + services.sftpgo = { + enable = true; + dataDir = "/tank/sftpgo"; + url = "${config.networking.hostName}.brownbread.net"; + }; + scripts.motd = { + enable = true; + networkInterfaces = [ "enp59s0" ]; + servicesToCheck = [ + "caddy" + "ollama" + "sftpgo" + "zfs-zed" + ]; + }; + scripts.zquota = { + enable = true; + quotas = { + "tank/sftpgo" = 512; + }; + }; + }; +} |