804 Commits

Author SHA1 Message Date
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
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
misuzu a34a8fb969 nixos/nfc-nci: Adjust pcscd system call hardening (#508319) 2026-04-14 16:29:05 +00:00
Philip Taron d22bc0f6f5 treewide: remove nobody/nogroup [part 1] (#509391) 2026-04-13 14:51:20 +00:00
rnhmjoj 577b32b084 treewide: remove nobody/nogroup from examples
The nobody/nogroup pair of should only ever be used by NFS to map remote
uid/guids that are missing locally. Every other use is an abuse and
generally a security concern.

Specifically, they're NOT some special user/group that can be used to
run programs without giving them any privileges. In fact, the opposite
is true: the more programs you run as nobody/nogroup the more valuable
files and resources become accessible to "nobody" and consequently
exposed to a potentially compromised program.

This removes mentions of nobody/nogroup from documentation and examples.
2026-04-13 10:23:25 +02:00
Christoph Honal d62b05d75b nixos/nfc-nci: Adjust pcscd system call hardening 2026-04-09 14:39:14 +02:00
Angel J 156e6799b4 nixos/nvidia: fix videoAcceleration option description 2026-04-09 01:05:32 +02:00
Wroclaw 98a66be2da nixos/openrazer: allow to configure packages 2026-03-31 21:42:12 +02:00
Michael Daniels 8da32cb92b nixos/openrazer: fix driver list (#492823) 2026-03-29 23:17:12 +00:00
Nick Cao 4087417680 nixos/nvidia: remove unnecessary kernel parameter (#499412) 2026-03-25 21:07:04 +00:00
Fernando Rodrigues b9302c3309 nixos/facter: add enable option (#494183) 2026-03-18 00:43:14 +00:00
LucasFA c850401e18 nixos/nvidia: remove unnecessary kernel parameter
NVreg_OpenRmEnableUnsupportedGpus has had no effect since driver release
545.23.06 of the open kernel modules, where it is documented:

>Option: OpenRmEnableUnsupportedGpus
>This option to require opt in for use of Open RM on non-Data Center
>GPUs is deprecated and no longer required. The kernel module parameter
>is left here, though ignored, for backwards compatibility.

In the following NVIDIA/open-gpu-kernel-modules commit:
[b5bf85a8e3](https://github.com/NVIDIA/open-gpu-kernel-modules/commit/b5bf85a8e3eb2516b9abca4d1becaf1172d62822)

Potentially closes #438930

Backwards compatibility: there is a legacy 535 driver affected which
would use the flag. Version check added to keep that as it was until
now. Other legacy (before 515, no open module) or newer (after 545) unaffected.
2026-03-16 11:59:51 +01:00
Pratham Patel 612f734362 nixos/all-hardware.nix: conditionally enable module aliases removed in linux v7.0 2026-03-11 14:58:08 +05:30
andre4ik3 5dd1dff815 nixos/facter: add enable option
The option defaults to `report != { }` instead of `reportPath != null`,
because since the report may be set externally using `report`, guarding
for `reportPath != null` breaks setups that set it externally, since
none of the modules take effect any longer.
2026-03-11 09:07:52 +00:00
ccicnce113424 2e727397a6 nixos/nvidia: use kernel suspend notifiers if available 2026-03-07 07:26:59 +08:00
Steven Allen 71f94c224a nixos/hardware.displaylink: add displaylink to xserver.externallyConfiguredDrivers
Add "displaylink" to `services.xserver.externallyConfiguredDrivers`  to
let the xserver module know that said driver has already been configured
out-of-band.

Fixes #491861
2026-02-25 10:06:32 -08:00
Tom Hunze 4d325e15d1 nixos/openrazer: fix driver list
Upstream renamed or merged a few of its kernel modules over the years.

See https://github.com/openrazer/openrazer/blob/v3.11.0/driver/Makefile
for the current list.
2026-02-21 18:34:14 +01:00
Yohann Boniface f85250b209 pcmciautils: rename from pcmciaUtils (#489666) 2026-02-19 10:30:32 +00:00
Jo f8c8aafeb3 ipw2200-firmware: rename from intel2200BGFirmware (#488294) 2026-02-18 10:56:20 +00:00
quantenzitrone 23b47864fa pcmciautils: rename from pcmciaUtils
fit attrname to pname
2026-02-12 05:16:20 +01:00
Dyego Aurélio fc1740caaf nixos/xpadneo: add module parameter configuration options
Add options to configure xpadneo kernel module parameters:

- settings: freeform attrset for any kernel module parameter
  (disable_deadzones, trigger_rumble_mode, disable_shift_mode, etc.)
- rumbleAttenuation: convenience option with overall/triggers submodule
  for force feedback attenuation
- quirks: convenience option mapping MAC addresses to quirk flags

The NixOS test is extended to provide basic sanity checks on the
generated modprobe configuration.
2026-02-12 01:01:08 -03:00
quantenzitrone f60afe7fa8 ipw2200-firmware: rename from intel2200BGFirmware
Not sure what the upstream is since we pull the package from fedora, but
this seems to be how other software repos call the package:
https://repology.org/project/ipw2200-firmware/versions
2026-02-10 16:51:41 +01:00
Sandro ba66af58ed hid-fanatecff: Init at 0.2.2 (#434560) 2026-02-09 01:23:09 +00:00
Christian Harke ea3e190c7e nixos/hid-fanatecff: init module 2026-02-03 19:56:42 +01:00
Fazzi a39e036168 xone-dongle-firmware: rename from xow_dongle-firmware 2026-02-02 00:39:59 +01:00
Kira Bruneau f664fc294e nixos/xpadneo: enable bluetooth (#483838) 2026-02-01 15:03:31 +00:00
Yureka 2141b99d9e tree-wide: use allowUnfreePackages where applicable 2026-01-27 13:10:24 +01:00
Kira Bruneau 9eae7a640c nixos/xpadneo: enable bluetooth
xpadneo requires a bluetooth implementation: https://github.com/atar-axis/xpadneo?tab=readme-ov-file#prerequisites
2026-01-25 20:33:47 -05:00
quantenzitrone 3e622a5110 nixos: remove references to the xorg namespace
this only creates the usual nixos module rebuilds
2026-01-25 22:58:40 +01:00
Dyego Aurélio 28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03:00
Sandro edb78a8b13 tuxedo-drivers: fix udev settings evaluation (#479580) 2026-01-19 10:05:11 +00:00
NAHO a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
LuckShiba a77e30e4ec tuxedo-drivers: fix udev settings evaluation 2026-01-13 15:16:44 -03:00
Gergő Gutyina a782402469 nixos/opentabletdriver: fix "Daemon is already running" (#473683) 2026-01-13 14:04:10 +00:00