837 Commits

Author SHA1 Message Date
ooonea
07880405bb nixos/nvidia: use nvidia-modprobe to create device nodes
Use the native helper to handle existing nodes and driver device-file parameters, including stale UVM major numbers. Create the reverse-link directory before the module add handlers, keep GPU minor enumeration, and do not recreate nodes on remove events. Backport the independently prepared helper fix for concurrent device creation.

Assisted-by: OpenAI Codex (gpt-6.1-sol)
2026-10-15 22:10:47 +02:00
Sandro
5e65908665 nixos/printers: fix shellcheck issue again (permit shell-expressions in lpadmin arguments) (#565959) 2026-10-12 22:57:25 +00:00
Ihar Hrachyshka
27fe925b93 nixos/nvidia: enable acpid with mkDefault (#569549) 2026-10-11 14:45:57 +00:00
heki
23f2c6d046 nixos/nvidia: enable acpid with mkDefault
Otherwise, one has to `lib.mkForce false`.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-10-11 10:33:18 -04:00
Sandro
b69259a136 nixos/v4l2-relayd: fix buffer starvation and restart rate limiting (#567542) 2026-10-10 22:26:40 +00:00
Fabio Bittner
14c9cb7e4f nixos/v4l2-relayd: create the loopback device with enough buffers
v4l2loopback allocates two buffers by default, which is not enough for
GStreamer to keep writing while a consumer holds one. The sink runs out,
fails to allocate, and ends the pipeline:

    v4l2bufferpool <v4l2sink:pool0:sink> failed to allocate buffer
    basesrc <appsrc> error: Internal data stream error.
    V4L2_RELAYD output_pipeline_bus_call: Internal data stream error.

v4l2-relayd exits and gets restarted, so on an IPU6 laptop the sensor
powers off and on again every few seconds, camera indicator light and
all. Pass a buffer count when creating the device and make it
configurable per instance.

Tested on a ThinkPad X1 Yoga Gen 8 (OV2740 behind IPU6, ipu6ep): with
eight buffers an active relay runs for minutes where it used to die
within seconds.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2026-10-10 01:12:11 +02:00
Friedrich Altheide
15c689c7e0 virtualboxGuestAdditions: use package override when loading kernel package 2026-10-05 10:57:15 +02:00
dish
80c92228db nixos/displaylink: fix with strict shellcheck (#564258) 2026-10-01 18:16:37 +00:00
Yarny0
f6e1bf7fd3 nixos/printers: fix shellcheck issue again
Some arguments to `lpadmin` might look like shell expressions,
triggering shellcheck warnings.

This was fixed earlier already, in
6bb5aa2d26 ,
but the fix got lost later, in
85e3dd1d48 .
2026-09-28 15:52:59 +02:00
Michael Daniels
53bc4d6aa3 various: fix formatting 2026-09-25 21:21:45 -04:00
Martin Fischer
d0e302d6c7 nixos/printers: fix empty value handling in ensurePrinters
E.g. this configuration:

    hardware.printers.ensurePrinters = [
      {
        name = "test";
        deviceUri = "ipp://somewhere";
        location = "";
        model = "everywhere";
      }
    ];

Resulted in the following command being generated:

    /nix/store/...-cups-2.4.19/bin/lpadmin -L -meverywhere -ptest -vipp://somewhere -E

Note the missing '' after -L which then caused /etc/cups/printers.conf to contain:

    Info test
    Location -meverywhere
    DeviceURI ipp://somewhere

This bug was introduced in 1f4c50ab81 with the
change from the (now deprecated) toGNUCommandLineShell to toCommandLineShellGNU.

Assisted-by: pi (OpenAI gpt-5.5)
2026-09-25 13:56:42 +02:00
Yureka
aeb1a4906f maintainers: remove mvs
See https://github.com/NixOS/nixpkgs-committers/pull/125#issuecomment-5775600198
2026-09-23 20:20:40 +02:00
whispers
b1371e26ae nixos/displaylink: fix with strict shellcheck
using the displaylink module currently fails with
`systemd.enableStrictShellChecks = true;`. there are two warnings:

- `read` without `-r` can technically mangle backslashes, as it acts as
  an escape character by default. as far as we can tell, this shouldn't
  cause problems, but it seems like a harmless and technically-correct
  fix.
- `SUSPEND_RESULT` is unused. as far as i can tell, this indeed seems to
  be the case, so this makes sense to remove.
2026-09-17 11:21:24 -04:00
Robert Schütz
cd1fdc1df9 nixos/printers: assert that each class contains at least one printer or class 2026-09-16 17:43:53 -07:00
dotlambda
8eb9f99282 nixos/printers: collect provisioning into CUPS' ExecStartPost (#558981) 2026-09-15 18:54:53 +00:00
h7x4
85e3dd1d48 nixos/printers: collect provisioning into CUPS' ExecStartPost
Instead of keeping multiple interdependent systemd units, it's both
cleaner and more stable to just keep all provisioning as a direct part
of the cups unit. This gets rid of all the machinery around whether or
not the unit was socket activated as well, as the provisioning scripts
now will lazily run whenever cups is activated.
2026-09-15 17:45:32 +09:00
h7x4
d6c83dc6e4 nixos/printing: refactor module
Combine attrs under `config`, and move several let-binding closer to
where they are references.
2026-09-15 17:07:53 +09:00
Sandro
a835c6e12e ipu7: init (#542085) 2026-09-10 13:18:46 +00:00
Username404-59
22d863bacd nixos/hardware/nvidia: fix typo in description of prime.offload.enableOffloadCmd 2026-09-07 01:06:17 +02:00
h7x4
b30efef182 nixos/hardware.acpilight: improve the description (#497125) 2026-09-06 14:25:11 +00:00
aoli-al
90f018f31d nixos/hardware.ipu7: init
Co-Authored-By: Ao Li <aoli.al@hotmail.com>
Co-Authored-By: Atlas Yu <pseudoc@163.com>
2026-08-31 13:16:14 -07:00
h7x4
a32bc71d1a nixos/hddtemp: fix start script to work with strictShellChecks enabled (#469112) 2026-08-30 09:48:00 +00:00
Sandro
da89bc52e7 modules/nvidia: Clean and fix NVIDIA module parameters example (#554389) 2026-08-27 13:22:11 +00:00
h7x4
0130e92415 nixos/hardware.printers: add ensureClasses option (#524127) 2026-08-27 08:16:58 +00:00
Oleksandr Usov
9682bf1836 nixos/hddtemp: fix strict shell checks 2026-08-26 00:20:38 +01:00
BenRaz123
b9a84647c1 nixos/hardware.printers: add ensureClasses option
this adds support to CUPS classes in a style similar to the
`hardware.printers.ensurePrinters` option.

Classes in CUPS are groups of printers made by the user, usually in
order to group similar printers. When a job is sent to a class, the job
is attempted at each member printer until it succeeds. Classes can be
thought of as 'logical printers', in that they can behave like printers,
despite being an abstraction solely created by the print server.
2026-08-23 22:24:07 -04:00
nick
13c071ddd6 modules/nvidia: Clean and fix NVIDIA module parameters example
Fixes a small issue where search.nixos.org shows a text block with `''`'s for the example snippet (which may confuse the user) and added a `;` to correct the example snippet's syntax.
2026-08-19 23:26:34 +05:30
André Silva
6c4ad66e46 nixos/all-hardware: add xhci_pci_prom21 to default initrd modules on linux 7.2
Since 7.2, xhci-pci defers AMD 800-series chipset xHCI controllers
(1022:43fc/43fd) to the new xhci_pci_prom21 driver and no longer binds
them itself.
2026-08-17 11:57:44 +01:00
Aliaksandr
9921d05da3 treewide: replace stdenv.is* with stdenv.hostPlatform.is*
Assisted-by: claude-code with claude-opus-4-8
2026-08-12 20:27:00 +02:00
Svenum
41e401ae9f nixos/solaar: init 2026-08-12 11:25:38 +02:00
Sandro
a267286b5c linuxPackages.nxp-pn5xx: 0.4-unstable-2025-02-08 -> 0-unstable-2026-07-16, nixos/nfc-nci: cleanup module loading (#542922) 2026-07-29 11:33:57 +00:00
CrystalSplitter
69a7ab07fc nixos/opentabletdriver: Match OTD Upstream systemd environment checks
OTD requires WAYLAND_DISPLAY or DISPLAY to be set,
otherwise it assumes x11 which, on a WAYLAND display configuration,
leads to segfaults on OTD start up. Enforce an ordering
so that we wait until the session has initted before doing
anything.

Upstream has both a check for these environment variables,
as well as enforces a RestartSec=3 to prevent immediate
restarts.

Additionally, it's theoretically possible for DISPLAY to
be set before WAYLAND_DISPLAY, causing segmentation faults
on wayland set ups, so add an explicit polling condition for
that in the ExecStartPre script.
2026-07-17 21:35:24 -07:00
Arne Keller
0f704022c6 nixos/hardware: always add renesas kernel module to initrd (#471101) 2026-06-30 18:57:21 +00:00
Christoph Honal
0f9db2ae74 nixos/nfc-nci: remove forced module loading 2026-06-25 10:11:51 +02:00
Emily
31d1d80b3f lib/systems: move kernel configuration out of the platform structure
Currently, you need to override `stdenv.hostPlatform` to request a
compressed kernel on AArch64, and the kernel configuration is split
between the central structured configuration and string snippets in
platform definitions. This has consequently made the latter bitrot
terribly. Since the platform‐specific logic is now very limited after
cleaning up the detritus, we can move it into the kernel derivation
and expose the relevant configuration there for anyone who wants to
customize it further or needs to read it out.

Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>
2026-06-10 11:17:38 +10:00
Michele Guerini Rocco
a076bc1fb9 nixos/i2c: update udev rules (#517884) 2026-05-10 07:46:40 +00:00
roconnor
0db9fb252f nixos/i2c: update udev rules
Since systemd 258 it is recommended to replace ACTION=="add" with ACTION!="remove".
<https://lists.freedesktop.org/archives/systemd-devel/2025-September/051670.html>

Fixes the issue described in <https://discourse.nixos.org/t/udev-regression-recommended-way-for-udev-rules/73061>.
2026-05-08 08:23:51 -04:00
Kim Lindberger
5e568d23d3 virtualbox: 7.2.6 -> 7.2.8 (#512148) 2026-05-05 13:22:06 +00:00
André Lima
68b0d2b6c5 nixos/virtualbox: deprecate virtualbox video driver for kernel 7.0+ 2026-05-04 03:40:32 +01:00
ccicnce113424
dd7a671658 nixos/nvidia: add branch option 2026-04-27 02:36:37 +08:00
ccicnce113424
c647c537e4 nixos/nvidia: write module params to modprobe 2026-04-27 02:36:37 +08:00
ccicnce113424
78f6ee7ba2 nixos/nvidia: utilize ICD libraries built from source
This changes the NVIDIA NixOS module to use ICD libraries built from
source rather than relying on the pre-compiled bundled versions.

Additionally, this adds a necessary workaround for driver versions
below 595 to ensure proper compatibility.

For more context on the workaround, see the discussion at:
https://github.com/NixOS/nixpkgs/pull/497342#issuecomment-4034876793
2026-04-27 02:36:37 +08:00
ccicnce113424
c7dfcad894 linuxPackages.nvidia-x11: separate proprietary kernel modules 2026-04-27 02:36:37 +08:00
Sandro
0ef1bc45b6 nixos/openrazer: allow to configure packages (#394300) 2026-04-24 16:07:04 +00:00
Sandro
31ee0ef984 nixos/openrazer: remove extra new lines from defaultText 2026-04-24 18:01:08 +02:00
Jörg Thalheim
12310466b5 nixos/facter: enable amd-pstate for amd cpus (#512275) 2026-04-22 19:11:30 +00:00
zimward
2f236ee997 nixos/facter: enable amd-pstate for amd cpus 2026-04-21 19:21:31 +02:00
Edward Tjörnhammar
cd5d300bba linuxPackages.nvidiaPackages.dc_5{7,8,9}0: add compatible open kmods 2026-04-20 18:11:52 +02:00
Martin Weinelt
9ba1b4e7b2 nixos/ipu6, nixos/v4l2-relayd: fix device visibility, relay stability, and PipeWire integration (#511061) 2026-04-18 13:13:22 +00:00
Christoph Honal
bb22c84e70 nixos/ipu6: Fix device persistence and pipewire integration 2026-04-18 02:41:11 +02:00