Compare commits
4 Commits
daf0ea1169
...
2ec608c5ae
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ec608c5ae | |||
| 6a3a44b2f0 | |||
| 1c96a54c52 | |||
| 30d55ebb5a |
22
flake.nix
22
flake.nix
@@ -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)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule machines/android updated: 9ea3df5e7a...c0f6f05619
Submodule machines/homebox updated: 2a5ace5e0d...6d987978c0
Submodule machines/laptop updated: c421c92268...2c71c6b3b8
@@ -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";
|
||||||
|
|||||||
@@ -12,47 +12,44 @@
|
|||||||
./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) {
|
home.packages = with pkgs; [
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
inputs.disko.packages.${pkgs.stdenv.hostPlatform.system}.disko-install
|
||||||
|
|
||||||
inputs.disko.packages.${pkgs.stdenv.hostPlatform.system}.disko-install
|
kjv
|
||||||
|
openssh
|
||||||
|
sops
|
||||||
|
killall
|
||||||
|
btop
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
rsync
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
(python313.withPackages (ps: with ps; [
|
||||||
|
gpustat
|
||||||
|
numpy
|
||||||
|
matplotlib
|
||||||
|
scipy
|
||||||
|
pandas
|
||||||
|
pyaudio
|
||||||
|
pyusb
|
||||||
|
debugpy
|
||||||
|
requests
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
|
||||||
kjv
|
}
|
||||||
openssh
|
|
||||||
sops
|
|
||||||
killall
|
|
||||||
btop
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
rsync
|
|
||||||
curl
|
|
||||||
wget
|
|
||||||
(python313.withPackages (ps: with ps; [
|
|
||||||
gpustat
|
|
||||||
numpy
|
|
||||||
matplotlib
|
|
||||||
scipy
|
|
||||||
pandas
|
|
||||||
pyaudio
|
|
||||||
pyusb
|
|
||||||
debugpy
|
|
||||||
requests
|
|
||||||
]))
|
|
||||||
];
|
|
||||||
|
|
||||||
} // lib.mkMerge [
|
(mkIf config.homeconfig.graphical {
|
||||||
|
|
||||||
(lib.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
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user