First Commit.

This commit is contained in:
2025-10-12 10:17:09 -05:00
commit 06cb8c1e48
13 changed files with 473 additions and 0 deletions

View File

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

View File

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

View File

@@ -0,0 +1,18 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
services.open-webui = {
#enable = true;
enable = false;
host = "0.0.0.0";
openFirewall = true;
port = 9001;
environment =
{
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
ENABLE_LOGIN_FORM = "True";
};
};
}

View File

@@ -0,0 +1,31 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
services.sillytavern = {
enable = true;
#enable = false;
port = 9002;
listen = true;
listenAddressIPv4 = "127.0.0.1";
whitelist = true;
#user = "tavern";
#group = "tavern";
};
services.nginx = {
enable = true;
#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;
'';
};
};
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 80 ]; #9002
}

Binary file not shown.

View File

@@ -0,0 +1,36 @@
{ config, pkgs, inputs, ... }:
{
imports = [ ];
# Enable the X11 windowing system.
services.xserver.enable = true;
#Disable Suspend
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
# Enable the GNOME Desktop Environment.
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
#Packages
environment.systemPackages = with pkgs; [
gnome-tweaks
gnome-extension-manager
gnomeExtensions.pop-shell
gnomeExtensions.arcmenu
gnomeExtensions.dash-to-panel
gnomeExtensions.dash-to-dock
gnomeExtensions.just-perfection
gnomeExtensions.blur-my-shell
];
environment.gnome.excludePackages = with pkgs; [
epiphany
geary
gnome-tour
];
}

View File

@@ -0,0 +1,29 @@
{ config, pkgs, inputs, ... }:
{
imports =
[ ];
# Set your time zone.
time.timeZone = "America/Chicago";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
}