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;
|
||||
};
|
||||
|
||||
|
||||
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 = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
environmentVariables = {
|
||||
OLLAMA_CONTEXT_LENGTH = "16000";
|
||||
};
|
||||
package = let
|
||||
pkgs-us = import nixpkgs-us {
|
||||
system = "x86_64-linux";
|
||||
|
||||
@@ -12,47 +12,44 @@
|
||||
./scripts
|
||||
];
|
||||
|
||||
options.homeconfig.minimal = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
options.homeconfig.minimal = with lib; options.mkOption {
|
||||
type = with types; bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = {
|
||||
config = with lib; mkMerge [
|
||||
{
|
||||
|
||||
nixpkgs.config = lib.mkIf (!config.homeconfig.minimal) {
|
||||
allowUnfree = true;
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
|
||||
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 [
|
||||
|
||||
(lib.mkIf config.homeconfig.graphical {
|
||||
(mkIf config.homeconfig.graphical {
|
||||
home.packages = with pkgs; [
|
||||
|
||||
grim
|
||||
@@ -63,7 +60,7 @@
|
||||
];
|
||||
})
|
||||
|
||||
(lib.mkIf (!config.homeconfig.minimal) {
|
||||
(mkIf (!config.homeconfig.minimal) {
|
||||
home.packages = with pkgs; [
|
||||
cava
|
||||
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; [
|
||||
|
||||
handbrake
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
settings = {
|
||||
theme = "system";
|
||||
model = "ollama-local/ministral-3:8b";
|
||||
model = "ollama-local/llama3.2";
|
||||
|
||||
provider = {
|
||||
ollama-local = {
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
models = {
|
||||
"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