Added a vim config and put everything in my prefered indentation style.

This commit is contained in:
2025-10-12 11:44:48 -05:00
parent 89c9bd4996
commit 9cb89b9aeb
12 changed files with 509 additions and 270 deletions

View File

@@ -1,8 +1,8 @@
{ config, pkgs, inputs, ... }:
{
imports = [
./ollama.nix
./open-webui.nix
./sillytavern.nix
];
imports = [
./ollama.nix
./open-webui.nix
./sillytavern.nix
];
}

View File

@@ -1,6 +1,6 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
imports = [ ];
services.ollama = {
enable = true;
acceleration = "cuda";

View File

@@ -1,8 +1,8 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
imports = [ ];
services.open-webui = {
#enable = true;
#enable = true;
enable = false;
host = "0.0.0.0";
openFirewall = true;
@@ -15,4 +15,4 @@
ENABLE_LOGIN_FORM = "True";
};
};
}
}

View File

@@ -1,31 +1,31 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
imports = [ ];
services.sillytavern = {
enable = true;
#enable = false;
#enable = false;
port = 9002;
listen = true;
listenAddressIPv4 = "127.0.0.1";
whitelist = true;
#user = "tavern";
#group = "tavern";
#user = "tavern";
#group = "tavern";
};
services.nginx = {
enable = true;
#additionalModules = [ pkgs.nginxModules.pam ];
#additionalModules = [ pkgs.nginxModules.pam ];
virtualHosts."192.168.0.101" = {
locations."/" = {
proxyPass = "http://localhost:9002";
extraConfig = ''
auth_basic "Password Required";
auth_basic_user_file /etc/htpasswd;
auth_basic_user_file /etc/htpasswd;
'';
};
};
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 80 ]; #9002
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 80 ]; #9002
}