Compare commits

...

4 Commits

Author SHA1 Message Date
2ec608c5ae update machines 2026-01-11 10:12:55 -06:00
6a3a44b2f0 add more opencode models 2026-01-10 23:23:33 -06:00
1c96a54c52 use instruct model for opencode 2026-01-10 21:23:53 -06:00
30d55ebb5a unfree problems 2026-01-10 19:06:55 -06:00
7 changed files with 68 additions and 39 deletions

View File

@@ -180,5 +180,27 @@
default = self.templates.nixos; 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)
);
}; };
} }

View File

@@ -11,6 +11,9 @@
services.ollama = { services.ollama = {
enable = true; enable = true;
acceleration = "cuda"; acceleration = "cuda";
environmentVariables = {
OLLAMA_CONTEXT_LENGTH = "16000";
};
package = let package = let
pkgs-us = import nixpkgs-us { pkgs-us = import nixpkgs-us {
system = "x86_64-linux"; system = "x86_64-linux";

View File

@@ -12,16 +12,13 @@
./scripts ./scripts
]; ];
options.homeconfig.minimal = lib.options.mkOption { options.homeconfig.minimal = with lib; options.mkOption {
type = lib.types.bool; type = with types; bool;
default = false; default = false;
}; };
config = { config = with lib; mkMerge [
{
nixpkgs.config = lib.mkIf (!config.homeconfig.minimal) {
allowUnfree = true;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
@@ -50,9 +47,9 @@
])) ]))
]; ];
} // lib.mkMerge [ }
(lib.mkIf config.homeconfig.graphical { (mkIf config.homeconfig.graphical {
home.packages = with pkgs; [ home.packages = with pkgs; [
grim grim
@@ -63,7 +60,7 @@
]; ];
}) })
(lib.mkIf (!config.homeconfig.minimal) { (mkIf (!config.homeconfig.minimal) {
home.packages = with pkgs; [ home.packages = with pkgs; [
cava cava
android-tools android-tools
@@ -78,7 +75,12 @@
]; ];
}) })
(lib.mkIf (!config.homeconfig.minimal && config.homeconfig.graphical) { (mkIf (!config.homeconfig.minimal && config.homeconfig.graphical) {
nixpkgs.config = mkIf (!config.homeconfig.minimal) {
allowUnfree = true;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
handbrake handbrake

View File

@@ -12,7 +12,7 @@
settings = { settings = {
theme = "system"; theme = "system";
model = "ollama-local/ministral-3:8b"; model = "ollama-local/llama3.2";
provider = { provider = {
ollama-local = { ollama-local = {
@@ -24,6 +24,8 @@
models = { models = {
"ministral-3:8b".name = "Ministral 3 8B"; "ministral-3:8b".name = "Ministral 3 8B";
"llama3.2".name = "Llama 3.2";
"qwen3:8b".name = "Qwen 3";
}; };
}; };