1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: format everything

This commit is contained in:
oddlama 2024-11-26 13:34:55 +01:00
parent deca311c68
commit 7ccd7856ee
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
162 changed files with 4750 additions and 3718 deletions

View file

@ -2,18 +2,20 @@
config,
globals,
...
}: let
}:
let
openWebuiDomain = "chat.${globals.domains.me}";
in {
in
{
microvm.mem = 1024 * 16;
microvm.vcpu = 20;
wireguard.proxy-sentinel = {
client.via = "sentinel";
firewallRuleForNode.sentinel.allowedTCPPorts = [config.services.open-webui.port];
firewallRuleForNode.sentinel.allowedTCPPorts = [ config.services.open-webui.port ];
};
networking.firewall.allowedTCPPorts = [config.services.ollama.port];
networking.firewall.allowedTCPPorts = [ config.services.ollama.port ];
environment.persistence."/state".directories = [
{
@ -64,7 +66,7 @@ in {
nodes.sentinel = {
services.nginx = {
upstreams.open-webui = {
servers."${config.wireguard.proxy-sentinel.ipv4}:${toString config.services.open-webui.port}" = {};
servers."${config.wireguard.proxy-sentinel.ipv4}:${toString config.services.open-webui.port}" = { };
extraConfig = ''
zone open-webui 64k;
keepalive 2;
@ -79,7 +81,7 @@ in {
useACMEWildcardHost = true;
oauth2 = {
enable = true;
allowedGroups = ["access_openwebui"];
allowedGroups = [ "access_openwebui" ];
X-Email = "\${upstream_http_x_auth_request_preferred_username}@${globals.domains.personal}";
};
extraConfig = ''