Compare commits

...

5 Commits

Author SHA1 Message Date
tux
1b2a07afbc feat: move glance to arcturus 2025-03-16 03:07:17 +05:30
tux
5c662fd5be chore: allow tcp port 2025-03-16 00:41:47 +05:30
tux
e257af6b63 feat: add open webui 2025-03-16 00:41:18 +05:30
tux
470de70dd8 feat: setup nginx for open webui 2025-03-16 00:40:56 +05:30
tux
a2a3f24816 feat: add easy effects 2025-03-16 00:14:39 +05:30
5 changed files with 57 additions and 26 deletions

View File

@ -30,6 +30,8 @@
../../modules/nixos/selfhosted/silver-bullet.nix
../../modules/nixos/selfhosted/rustdesk-server.nix
../../modules/nixos/selfhosted/kasmweb.nix
../../modules/nixos/selfhosted/open-webui.nix
../../modules/nixos/selfhosted/glance
];
tux.services.openssh.enable = true;
@ -142,7 +144,7 @@
firewall = {
enable = true;
allowedTCPPorts = [80 443 22 3333];
allowedTCPPorts = [80 443 22 3333 8081];
};
};

View File

@ -16,7 +16,6 @@
../../modules/nixos/desktop
../../modules/nixos/virtualisation/docker.nix
../../modules/nixos/selfhosted/open-webui.nix
../../modules/nixos/selfhosted/glance
];
tux.services.openssh.enable = true;

View File

@ -61,6 +61,7 @@
xdg-utils
playerctl
pulsemixer
easyeffects
procps
sct
slop

View File

@ -1,4 +1,9 @@
{username, ...}: let
{
username,
lib,
config,
...
}: let
home = import ./home.nix;
in {
services = {
@ -19,20 +24,20 @@ in {
};
};
# nginx = {
# enable = lib.mkForce true;
# virtualHosts = {
# "dashboard.tux.rs" = {
# forceSSL = true;
# useACMEHost = "tux.rs";
# locations = {
# "/" = {
# proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}";
# proxyWebsockets = true;
# };
# };
# };
# };
# };
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"home.tux.rs" = {
forceSSL = true;
useACMEHost = "tux.rs";
locations = {
"/" = {
proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}";
proxyWebsockets = true;
};
};
};
};
};
};
}

View File

@ -1,11 +1,35 @@
{...}: {
services.open-webui = {
enable = true;
openFirewall = true;
host = "0.0.0.0";
environment = {
ENABLE_OLLAMA_API = "True";
OLLAMA_BASE_URL = "http://pc:11434";
{
lib,
config,
...
}: {
services = {
open-webui = {
enable = true;
openFirewall = true;
host = "0.0.0.0";
port = 1111;
environment = {
WEBUI_URL = "https://chat.tux.rs";
ENABLE_OLLAMA_API = "True";
OLLAMA_BASE_URL = "http://pc:11434";
};
};
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"chat.tux.rs" = {
forceSSL = true;
useACMEHost = "tux.rs";
locations = {
"/" = {
proxyPass = "http://${config.services.open-webui.host}:${toString config.services.open-webui.port}";
proxyWebsockets = true;
};
};
};
};
};
};
}