This commit is contained in:
2026-05-27 15:06:47 -05:00
5 changed files with 28 additions and 7 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ flake.nixosModules.lily-desktop = { pkgs, ... }:{
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 80 ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
+1 -1
View File
@@ -8,7 +8,7 @@
self.nixosModules.localization self.nixosModules.localization
self.nixosModules.applications self.nixosModules.applications
self.nixosModules.utilities self.nixosModules.utilities
self.nixosModules.early #self.nixosModules.early
]; ];
}; };
} }
+1 -1
View File
@@ -6,7 +6,7 @@
self.nixosModules.nginx self.nixosModules.nginx
self.nixosModules.rtl_sdr self.nixosModules.rtl_sdr
self.nixosModules.utilities self.nixosModules.utilities
self.nixosModules.early #self.nixosModules.early
self.nixosModules.lily self.nixosModules.lily
self.nixosModules.localization self.nixosModules.localization
+22 -1
View File
@@ -13,13 +13,20 @@ in {
}; };
}) })
]; ];
services.sillytavern = {
enable = true;
port = 9002;
listen = true;
listenAddressIPv4 = "127.0.0.1";
whitelist = false;
};
services.llama-swap = { services.llama-swap = {
enable = true; enable = true;
port = 9001; port = 9001;
openFirewall = true; openFirewall = true;
listenAddress = "0.0.0.0"; listenAddress = "0.0.0.0";
settings = { settings = {
models = { models = {
#Language Models #Language Models
"angelic_eclipse-12b" = { "angelic_eclipse-12b" = {
ttl = 3600; ttl = 3600;
@@ -95,6 +102,20 @@ in {
}; };
}; };
}; };
services.nginx = {
enable = true;
virtualHosts."192.168.0.101" = {
locations."/" = {
proxyPass = "http://localhost:9002";
extraConfig = ''
auth_basic "Password Required";
auth_basic_user_file /etc/htpasswd;
'';
};
};
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
llama-cpp-cuda llama-cpp-cuda
stable-diffusion-cpp-cuda stable-diffusion-cpp-cuda
+3 -3
View File
@@ -8,15 +8,15 @@
availableKernelModules = [ "r8169" "e1000e" ]; availableKernelModules = [ "r8169" "e1000e" ];
network = { network = {
enable = true; enable = true;
udhcpc.enable = true; #udhcpc.enable = true;
ssh = { ssh = {
enable = true; enable = true;
port = 222; port = 222;
hostKeys = [ /etc/secrets/initrd/ssh_host_key ]; hostKeys = [ /etc/secrets/initrd/ssh_host_key ];
authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK/zH272jRjJf120mqr6EpKB346Nufq5lKFzFTd0ckAC lily@lily-desktop" ]; authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK/zH272jRjJf120mqr6EpKB346Nufq5lKFzFTd0ckAC lily@lily-desktop" ];
shell = "/bin/cryptsetup-askpass"; #shell = "/bin/cryptsetup-askpass";
}; };
postCommands = ''ip addr''; #postCommands = ''ip addr'';
}; };
}; };