Skip to content

Commit c21329f

Browse files
before onnxruntime
1 parent 2325dd5 commit c21329f

File tree

7 files changed

+101
-17
lines changed

7 files changed

+101
-17
lines changed

desktop/l/corsair-fan-control.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
let
1313
# Configuration - modify these values for your setup
1414
fanNumber = "fan1"; # Change this to control different fans (fan1, fan2, fan3, etc.)
15-
fanSpeed = 50; # Change this to desired fan speed (0-100)
15+
fanSpeed = 80; # Change this to desired fan speed (0-100)
1616

1717
# Script to set fan speed using liquidctl
1818
corsairFanControlScript = pkgs.writeShellScript "corsair-fan-control" ''

desktop/l/flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop/l/flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
"android-studio-stable"
3636
];
3737
};
38+
overlays = [
39+
(final: prev: {
40+
onnxruntime = final.callPackage /home/das/Downloads/nixpkgs/pkgs/by-name/on/onnxruntime/package.nix { };
41+
})
42+
];
3843
};
3944
lib = nixpkgs.lib;
4045
in {

desktop/l/home.nix

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@
130130

131131
# Scripting/Utils
132132
perl
133-
#3.12.8 on 12th of Feb 2025
134-
python3Full
133+
python314
135134
gawk
136135
jq
137136
git
@@ -158,6 +157,8 @@
158157
rsync
159158
tree
160159

160+
nixpkgs-fmt
161+
161162
# Terminals
162163
alacritty
163164
kitty
@@ -218,7 +219,7 @@
218219
#grpcurl
219220
# https://github.com/go-gorm/gen
220221
# https://github.com/infobloxopen/protoc-gen-gorm/blob/main/example/postgres_arrays/buf.gen.yaml
221-
gorm-gentool
222+
#gorm-gentool
222223
# removed 24.11
223224
#buf-language-server
224225
# https://tinygo.org/
@@ -261,8 +262,9 @@
261262
#clang_multi
262263

263264
# Mobile Development
264-
#flutter
265-
flutter329
265+
flutter #3.35.2
266+
#flutter329
267+
# https://search.nixos.org/packages?channel=unstable&query=flutter
266268
firebase-tools
267269
android-studio
268270
android-tools
@@ -383,7 +385,7 @@
383385
hyperfine
384386

385387
# App Launchers
386-
rofi-wayland
388+
rofi
387389
wofi
388390

389391
# Raspberry Pi
@@ -446,6 +448,9 @@
446448

447449
# Screenshot tool with Wayland support
448450
(flameshot.override { enableWlrSupport = true; })
451+
452+
# Custom onnxruntime package
453+
onnxruntime
449454
];
450455

451456
# vscode
@@ -565,7 +570,7 @@
565570
#obs-dir-watch-media
566571
obs-transition-table
567572
obs-recursion-effect
568-
obs-backgroundremoval
573+
obs-backgroundremoval # https://github.com/royshil/obs-backgroundremoval
569574
obs-stroke-glow-shadow
570575
obs-scene-as-transition
571576
obs-browser-transition

desktop/l/ollama-service.nix

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,23 @@ in {
3838

3939
# https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#amd-gpu-discovery
4040

41+
42+
# sudo systemctl status ollama-model-loader.service
43+
# sudo systemctl restart ollama-model-loader.service
44+
45+
# ollama list
46+
4147
loadModels = [
4248
"nomic-embed-text:latest"
4349
"codellama:34b"
50+
"codellama:13b"
51+
"codellama:7b"
4452
"llama3.2:latest"
53+
"llama3.2:3b" # https://ollama.com/library/llama3.2
54+
#"llama4:latest" # too big!
4555
"gpt-oss:20b"
4656
"deepseek-r1:32b"
57+
#"deepseek-r1:1.5b"
4758
"llama3-groq-tool-use:70b-q2_K"
4859
"qwen2.5-coder:32b"
4960
];
@@ -78,4 +89,64 @@ in {
7889

7990
};
8091

81-
}
92+
}
93+
94+
# rocminfo 2>&1 | grep -i -E '(agent|name|uuid)'
95+
96+
# [das@l:~/nixos/desktop/l]$ systemctl restart ollama-model-loader.service
97+
98+
# [das@l:~/nixos/desktop/l]$ systemctl status ollama-model-loader.service
99+
# ○ ollama-model-loader.service - Download ollama models in the background
100+
# Loaded: loaded (/etc/systemd/system/ollama-model-loader.service; enabled; preset: ignored)
101+
# Active: inactive (dead) since Fri 2025-09-12 11:29:58 PDT; 5s ago
102+
# Duration: 413ms
103+
# Invocation: 54354297f7de43299bbebd26460adefe
104+
# Process: 551044 ExecStart=/nix/store/if3rc0z8v3f1h468klz4varj3jgn7isc-unit-script-ollama-model-loader-start/bin/ollama-model-loader-start (code=exited, status=0/SUCCESS)
105+
# Main PID: 551044 (code=exited, status=0/SUCCESS)
106+
# IP: 16.9K in, 12.9K out
107+
# IO: 0B read, 0B written
108+
# Mem peak: 60.8M
109+
# CPU: 184ms
110+
111+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [122B blob data]
112+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [122B blob data]
113+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [122B blob data]
114+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [122B blob data]
115+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [122B blob data]
116+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [27B blob data]
117+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [20B blob data]
118+
# Sep 12 11:29:58 l ollama-model-loader-start[551054]: [25B blob data]
119+
# Sep 12 11:29:58 l systemd[1]: ollama-model-loader.service: Deactivated successfully.
120+
# Sep 12 11:29:58 l systemd[1]: ollama-model-loader.service: Consumed 184ms CPU time, 60.8M memory peak, 16.9K incoming IP traffic, 12.9K outgoing IP traffic.
121+
122+
# [das@l:~/nixos/desktop/l]$ ollama list
123+
# NAME ID SIZE MODIFIED
124+
# llama3.2:3b a80c4f17acd5 2.0 GB 14 seconds ago
125+
# llama3.2:latest a80c4f17acd5 2.0 GB 14 seconds ago
126+
# nomic-embed-text:latest 0a109f422b47 274 MB 14 seconds ago
127+
# qwen2.5-coder:32b b92d6a0bd47e 19 GB 14 seconds ago
128+
# codellama:34b 685be00e1532 19 GB 14 seconds ago
129+
# deepseek-r1:32b edba8017331d 19 GB 14 seconds ago
130+
# gpt-oss:20b aa4295ac10c3 13 GB 14 seconds ago
131+
# llama3-groq-tool-use:70b-q2_K dab8a158f092 26 GB 14 seconds ago
132+
133+
# [das@l:~/nixos/desktop/l]$
134+
135+
# [das@l:~/nixos/desktop/l]$ rocm-smi --alldevices --showallinfo
136+
137+
138+
# ============================ ROCm System Management Interface ============================
139+
# ============================== Version of System Component ===============================
140+
# Driver version: 6.16.5
141+
# ==========================================================================================
142+
# =========================================== ID ===========================================
143+
# GPU[0] : Device Name: TBD VEGA20 CARD
144+
# GPU[0] : Device ID: 0x66a1
145+
# GPU[0] : Device Rev: 0x00
146+
# GPU[0] : Subsystem ID: 0x1002
147+
# GPU[0] : GUID: 33678
148+
# GPU[1] : Device Name: 0x1002
149+
# GPU[1] : Device ID: 0x7312
150+
# GPU[1] : Device Rev: 0x00
151+
# GPU[1] : Subsystem ID: 0x1002
152+
# GPU[1] : GUID: 11012

desktop/l2/configuration.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
./locale.nix
2525
./hosts.nix
2626
./firewall.nix
27-
./crowdsec.nix
27+
#./crowdsec.nix
2828
#./systemdSystem.nix
2929
./systemPackages.nix
3030
# home manager is imported in the flake
@@ -43,7 +43,7 @@
4343
./hostapd-multi.nix
4444
./network-optimization.nix
4545
# CPU and IRQ optimization modules
46-
./irq-affinity.nix
46+
#./irq-affinity.nix
4747
./systemd-slices.nix
4848
./kernel-params.nix
4949
#./monitoring.nix

desktop/l2/hardware-configuration.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@
2222

2323
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2424
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
25+
26+
hardware.infiniband.enable = true;
27+
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/hardware/infiniband.nix
2528
}

0 commit comments

Comments
 (0)