mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
Compare commits
5 Commits
d3627572f3
...
1b2a07afbc
Author | SHA1 | Date | |
---|---|---|---|
1b2a07afbc
|
|||
5c662fd5be
|
|||
e257af6b63
|
|||
470de70dd8
|
|||
a2a3f24816
|
@ -30,6 +30,8 @@
|
|||||||
../../modules/nixos/selfhosted/silver-bullet.nix
|
../../modules/nixos/selfhosted/silver-bullet.nix
|
||||||
../../modules/nixos/selfhosted/rustdesk-server.nix
|
../../modules/nixos/selfhosted/rustdesk-server.nix
|
||||||
../../modules/nixos/selfhosted/kasmweb.nix
|
../../modules/nixos/selfhosted/kasmweb.nix
|
||||||
|
../../modules/nixos/selfhosted/open-webui.nix
|
||||||
|
../../modules/nixos/selfhosted/glance
|
||||||
];
|
];
|
||||||
|
|
||||||
tux.services.openssh.enable = true;
|
tux.services.openssh.enable = true;
|
||||||
@ -142,7 +144,7 @@
|
|||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [80 443 22 3333];
|
allowedTCPPorts = [80 443 22 3333 8081];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
../../modules/nixos/desktop
|
../../modules/nixos/desktop
|
||||||
../../modules/nixos/virtualisation/docker.nix
|
../../modules/nixos/virtualisation/docker.nix
|
||||||
../../modules/nixos/selfhosted/open-webui.nix
|
../../modules/nixos/selfhosted/open-webui.nix
|
||||||
../../modules/nixos/selfhosted/glance
|
|
||||||
];
|
];
|
||||||
|
|
||||||
tux.services.openssh.enable = true;
|
tux.services.openssh.enable = true;
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
xdg-utils
|
xdg-utils
|
||||||
playerctl
|
playerctl
|
||||||
pulsemixer
|
pulsemixer
|
||||||
|
easyeffects
|
||||||
procps
|
procps
|
||||||
sct
|
sct
|
||||||
slop
|
slop
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
{username, ...}: let
|
{
|
||||||
|
username,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
home = import ./home.nix;
|
home = import ./home.nix;
|
||||||
in {
|
in {
|
||||||
services = {
|
services = {
|
||||||
@ -19,20 +24,20 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# nginx = {
|
nginx = {
|
||||||
# enable = lib.mkForce true;
|
enable = lib.mkForce true;
|
||||||
# virtualHosts = {
|
virtualHosts = {
|
||||||
# "dashboard.tux.rs" = {
|
"home.tux.rs" = {
|
||||||
# forceSSL = true;
|
forceSSL = true;
|
||||||
# useACMEHost = "tux.rs";
|
useACMEHost = "tux.rs";
|
||||||
# locations = {
|
locations = {
|
||||||
# "/" = {
|
"/" = {
|
||||||
# proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}";
|
proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}";
|
||||||
# proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,35 @@
|
|||||||
{...}: {
|
{
|
||||||
services.open-webui = {
|
lib,
|
||||||
enable = true;
|
config,
|
||||||
openFirewall = true;
|
...
|
||||||
host = "0.0.0.0";
|
}: {
|
||||||
environment = {
|
services = {
|
||||||
ENABLE_OLLAMA_API = "True";
|
open-webui = {
|
||||||
OLLAMA_BASE_URL = "http://pc:11434";
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user