From 2ec608c5ae5d6c98603e8f1e328fc6cecf8f647b Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 11 Jan 2026 10:12:55 -0600 Subject: [PATCH] update machines --- flake.nix | 22 ++++++++++++++++++++++ machines/android | 2 +- machines/homebox | 2 +- machines/laptop | 2 +- system/services/ollama/default.nix | 3 +++ 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index fd8659b..bbe6e1e 100644 --- a/flake.nix +++ b/flake.nix @@ -180,5 +180,27 @@ default = self.templates.nixos; }; + + + nixosConfigurations = let + dir = builtins.readDir ./machines; + filtered = builtins.filter (x: dir.${x} == "directory" && x != "android") (builtins.attrNames dir); + in (builtins.listToAttrs + (builtins.map + (name: ({ + inherit name; + + value = nixpkgs.lib.nixosSystem { + specialArgs = inputs; + + modules = [ + { sysconfig.host = name; } + ./machines/${name} + self.profiles.${name} + ]; + }; + + })) filtered) + ); }; } diff --git a/machines/android b/machines/android index 9ea3df5..c0f6f05 160000 --- a/machines/android +++ b/machines/android @@ -1 +1 @@ -Subproject commit 9ea3df5e7ac5b9d28740432d3a371fc508d3a623 +Subproject commit c0f6f056190b1ee8464e7c32211a0f0d9c208e8a diff --git a/machines/homebox b/machines/homebox index 2a5ace5..6d98797 160000 --- a/machines/homebox +++ b/machines/homebox @@ -1 +1 @@ -Subproject commit 2a5ace5e0d13cfaf11107db1c3a286522fb46ac0 +Subproject commit 6d987978c092c87e23e4e433c532aa76850a75b3 diff --git a/machines/laptop b/machines/laptop index c421c92..2c71c6b 160000 --- a/machines/laptop +++ b/machines/laptop @@ -1 +1 @@ -Subproject commit c421c92268239db680b31d552b0b4fefa68b010d +Subproject commit 2c71c6b3b8c3dc1ecef47b6156e46434c128014d diff --git a/system/services/ollama/default.nix b/system/services/ollama/default.nix index 1743dc3..7ac6f61 100644 --- a/system/services/ollama/default.nix +++ b/system/services/ollama/default.nix @@ -11,6 +11,9 @@ services.ollama = { enable = true; acceleration = "cuda"; + environmentVariables = { + OLLAMA_CONTEXT_LENGTH = "16000"; + }; package = let pkgs-us = import nixpkgs-us { system = "x86_64-linux";