Skip to content

Commit 2325dd5

Browse files
broadcom
1 parent 0269c57 commit 2325dd5

File tree

10 files changed

+77
-13
lines changed

10 files changed

+77
-13
lines changed

desktop/l/clickhouse-service.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let
1212

1313
in {
1414
# Enable ClickHouse service
15-
services.clickhouse.enable = true;
15+
services.clickhouse.enable = false;
1616

1717
# Override the default ClickHouse service with enhanced security
1818
systemd.services.clickhouse = {

desktop/l/configuration.nix

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@
5151
];
5252

5353
boot = {
54+
5455
loader.systemd-boot = {
5556
enable = true;
5657
consoleMode = "max";
5758
memtest86.enable = true;
59+
configurationLimit = 20;
5860
};
5961

6062
loader.efi.canTouchEfiVariables = true;
@@ -65,6 +67,14 @@
6567
kernelPackages = pkgs.linuxPackages_latest;
6668
#boot.kernelPackages = pkgs.linuxPackages_rpi4
6769

70+
# kernelPackages = pkgs.linuxPackages // {
71+
# kernel = pkgs.linuxPackages.kernel.override {
72+
# extraStructuredConfig = with lib.kernel; {
73+
# CONFIG_DRM_NOUVEAU = no;
74+
# };
75+
# };
76+
# };
77+
6878
# # https://github.com/tolgaerok/nixos-2405-gnome/blob/main/core/boot/efi/efi.nix#L56C5-L56C21
6979
# kernelParams = [
7080
# "nvidia-drm.modeset=1"
@@ -79,6 +89,13 @@
7989
"amdgpu"
8090
];
8191

92+
kernelModules = [
93+
"bnxt_en" # Ethernet
94+
"bnxt_re" # RoCEv2 RDMA provider
95+
"ib_uverbs" # RDMA verbs
96+
"rdma_ucm"
97+
];
98+
8299
blacklistedKernelModules = [
83100
"nouveau"
84101
#"i915"
@@ -94,8 +111,9 @@
94111

95112
extraModprobeConfig = ''
96113
options kvm_intel nested=1
97-
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
114+
options v4l2loopback devices=1 video_nr=1 card_label="v4l2loopback" exclusive_caps=1
98115
'';
116+
# https://github.com/v4l2loopback/v4l2loopback#options
99117
};
100118

101119
# https://fzakaria.com/2025/02/26/nix-pragmatism-nix-ld-and-envfs
@@ -107,7 +125,9 @@
107125
stdenv.cc.cc.lib
108126
zlib
109127
libxml2
128+
pciutils # for broadcom niccli
110129
# Add more libraries as needed
130+
#libpciaccess
111131
];
112132
};
113133

@@ -263,7 +283,16 @@
263283
systemd.tmpfiles.rules = [
264284
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
265285
];
266-
systemd.services.lactd.wantedBy = [ "multi-user.target" ];
286+
287+
# Enable LACT GPU Control Daemon
288+
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/hardware/lact.nix
289+
services.lact = {
290+
enable = true;
291+
# Optional: Add custom settings here if needed
292+
# settings = {
293+
# # Example settings
294+
# };
295+
};
267296

268297
xdg.portal = {
269298
enable = true;
@@ -329,3 +358,5 @@
329358
};
330359

331360
}
361+
362+
# end

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/hardware-configuration.nix

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

4444
hardware.i2c.enable = true;
4545
#hardware.sensor.hddtemp.enable = true;
46+
47+
# hardware.decklink.enable = true;
48+
#https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/hardware/decklink.nix
4649
}

desktop/l/home.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@
439439
kdePackages.kdenlive
440440

441441
flightgear
442+
linuxConsoleTools #jscal https://wiki.flightgear.org/Input_device
442443

443444
i2c-tools # sudo i2cdetect -l
444445
#liquidctl # moved to systemPackages.nix
@@ -538,7 +539,7 @@
538539
obs-noise
539540
obs-teleport
540541
obs-markdown
541-
obs-webkitgtk
542+
#obs-webkitgtk # seems to be removed
542543
obs-gstreamer
543544
input-overlay
544545
obs-rgb-levels

desktop/l/ollama-service.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ let
1414

1515
in {
1616

17+
services.open-webui = {
18+
enable = true;
19+
port = 8086; # default 8080
20+
};
21+
# https://github.com/open-webui/open-webui
22+
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/misc/open-webui.nix
23+
1724
services.ollama = {
1825

1926
enable = true;

desktop/l/systemPackages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@
5454
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/hardware/fancontrol.nix
5555
lm_sensors
5656
liquidctl
57+
58+
rdma-core # ibv_devinfo, rdma
59+
pciutils
60+
libpciaccess
5761
];
5862
}

desktop/l2/configuration.nix

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
];
5151

5252
boot = {
53+
5354
loader.systemd-boot = {
5455
enable = true;
5556
consoleMode = "max";
@@ -173,6 +174,9 @@
173174
#MY_VARIABLE = "my-value";
174175
};
175176

177+
systemd.services.modem-manager.enable = false;
178+
systemd.services."dbus-org.freedesktop.ModemManager1".enable = false;
179+
176180
users.users.das = {
177181
isNormalUser = true;
178182
description = "das";
@@ -191,6 +195,16 @@
191195
enableSSHSupport = true;
192196
};
193197

198+
# Enable LACT GPU Control Daemon
199+
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/hardware/lact.nix
200+
services.lact = {
201+
enable = true;
202+
# Optional: Add custom settings here if needed
203+
# settings = {
204+
# # Example settings
205+
# };
206+
};
207+
194208
# # https://nixos.wiki/wiki/Virt-manager
195209
# virtualisation.libvirtd.enable = true;
196210
# #programs.virt-manager.enable = true;
@@ -215,4 +229,4 @@
215229

216230
}
217231

218-
# end
232+
# end

desktop/l2/systemPackages.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@
5353
perf-tools
5454
linuxPackages_latest.perf
5555

56+
clinfo
57+
lact
58+
5659
rdma-core # ibv_devinfo, rdma
5760
pciutils
5861
libpciaccess
5962
];
6063
}
6164

62-
# end
65+
# end

desktop/old.l/configuration.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@
235235
systemd.tmpfiles.rules = [
236236
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
237237
];
238-
systemd.services.lactd.wantedBy = [ "multi-user.target" ];
238+
systemd.services.lact.wantedBy = [ "multi-user.target" ];
239+
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/hardware/lact.nix
239240

240241
# Configure keymap in X11
241242
services.xserver.xkb = {

0 commit comments

Comments
 (0)