Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-08-31 21:39:10 +02:00
25 changed files with 1091 additions and 933 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }@all: with all;
{ config, pkgs, ... }@all: with all;
{
# sops.secrets = {
# "wireless-networking.env" = {};
@@ -15,6 +15,7 @@
};
enableIPv6 = true;
firewall.allowedTCPPorts = [
(pkgs.lib.mkIf config.services.ollama.enable 11434)
80
443
8000

View File

@@ -4,7 +4,7 @@
package = if hyper.nvidia.enable then pkgs.ollama-cuda else pkgs.ollama;
enable = true;
acceleration = lib.mkIf hyper.nvidia.enable "cuda";
host = if hyper.host == "NxACE" then "0.0.0.0" else "127.0.0.1";
host = "0.0.0.0";
port = 11434;
environmentVariables = {
OLLAMA_ORIGINS = "*";