Commit graph

677 commits

Author SHA1 Message Date
Masum Reza
c9f192da92
nixos/amdgpu: add overdrive and ppfeaturemask option (#411155)
- `programs.corectrl.gpuOverclock.enable` -> `hardware.amdgpu.overdrive.enable`
- `programs.corectrl.gpuOverclock.ppfeaturemask` -> `hardware.amdgpu.overdrive.ppfeaturemask`
- `programs.tuxclocker.enableAMD` -> `hardware.amdgpu.overdrive.enable`
2025-05-27 19:45:13 +05:30
Seth Flynn
8e551be5f1
nixos/graphics: don't mark package options as internal 2025-05-10 14:36:08 -04:00
Cryolitia PukNgae
ef059726f1
nixos/xone: enable xpad-noone by default
Co-authored-by: misuzu <neironyan@gmail.com>
2025-04-29 22:38:48 +08:00
Gaetan Lepage
419e4d1822 nixos/hardware/nvidia: eager load nvidia-uvm for open driver
Fixes contingent CUDA issues with open driver:
https://github.com/NixOS/nixpkgs/issues/334180

Co-authored-by: Someone Serge <else@someonex.net>
2025-04-18 01:23:26 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Nick Cao
c58cb4c034
Update Nvidia busid check (#388892) 2025-03-26 18:33:41 -04:00
misuzu
f630533b4a
nixos/xpad-noone: init (#389752) 2025-03-25 11:29:52 +02:00
Cryolitia PukNgae
c33e419dd1
nixos/xpad-noone: init 2025-03-17 03:44:58 +08:00
Pol Dellaiera
b29c5b7119
treewide: add documentation for nixos systemd units (#389283) 2025-03-15 21:30:08 +01:00
K900
656e50abce
mesa: more cleanups (#387292) 2025-03-13 16:55:54 +03:00
Felix Singer
4d8d5f5782 nixos/libjaylink: init module
By enabling this module, the jlink system group is created and udev
rules from the libjaylink package are enabled. Read-/Write access is
granted to the members of the jlink group and to seat sessions.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-03-12 18:42:28 +01:00
h7x4
ab0564bd10
treewide: add documentation for nixos systemd units 2025-03-12 18:00:38 +01:00
K900
5da892d21c mesa: output cleanup, part 2
- build with out-of-tree libgbm
- $drivers -> $out, since $out is basically empty now
2025-03-11 22:16:23 +03:00
MakiseKurisu
72ffdcd4a6
nixos/nvidia: update description of BusIds for caveats 2025-03-11 13:41:34 +08:00
MakiseKurisu
0645e675ef
nixos/nvidia: update busIDType to correctly handle PCI bus domain
There are real devices with 32-bit domain ID 0x10000, which needs 10 digits to represent at the worst case (0xffffffff): open-mpi/hwloc#354

Current test will deny those devices since the field was expecting a Bus ID, which is only 8-bit wide.

Format: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xfree86/common/xf86pciBus.c#L263

Fixes: ce2e4707b7
2025-03-11 13:36:15 +08:00
Franz Pletz
7978d240c2
nixos/iosched: exclude loop devices by default; mention in release notes (#385106) 2025-03-09 09:38:05 +01:00
Mikael Voss
54bd09a515
nixos/iosched: exclude loop devices by default 2025-03-08 21:56:51 +01:00
Sandro Jäckel
7d99d5d3f4
nixos/nvidia: add a read only enabled option
similar to the one from zfs
2025-03-03 14:20:15 +01:00
Mikael Voss
3c0be38ee0
nixos/iosched: init module 2025-02-25 00:08:06 +01:00
Felix Singer
9eac410097 nixos/libftdi: Init module
By enabling this module, the ftdi system group is created and udev
rules from the libftdi package are enabled. Read-/Write access is
granted to the members of the ftdi group and to seat sessions.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-02-21 18:42:20 +01:00
Christoph Honal
a05198804c nixos/nfc-nci: init 2025-02-10 15:59:53 +01:00
Gavin John
572d780fbe
nixos/rtl-sdr: adopt 2025-01-28 13:26:29 -08:00
Gavin John
c8e664839b
nixos/rtl-sdr: modernize 2025-01-28 13:26:28 -08:00
piegames
603733851b treewide: Fix incorrect string escapes 2025-01-07 19:49:28 +01:00
Pol Dellaiera
d562f18cd8
nixos/hardware.pcmcia: Fix passthru.function usage (#370929) 2025-01-05 05:56:34 +01:00
Mynacol
e9d9adb73f nixos/hardware.pcmcia: Fix passthru.function usage
passthru.function is not existent, instead use overrideAttrs which has
almost the intended functionality. It triggers a rebuild, which
_should_ be fine for this package.
2025-01-04 17:29:00 +00:00
Victor Engmark
6bb5aa2d26
nixos/printers: Fix ShellCheck issue
Fixes the following warning when setting
`systemd.enableStrictShellChecks = true`:

> In /nix/store/a3mk99mgl10a4k3maxx361hdli5p2rip-unit-script-ensure-printers-start/bin/ensure-printers-start line 6:
> /nix/store/26fb46gwc5sbd045nj3dxw4zqpml359i-cups-2.4.11/bin/lpadmin -D 'virtual printer for cups-pdf instance pdf' -L '/var/spool/cups-pdf-pdf/users/${USER}' -m CUPS-PDF_opt.ppd -p pdf -v cups-pdf:/pdf -E
>                                                                                                                       ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
2025-01-04 18:08:22 +01:00
Donovan Glover
67bdaab2c4
wootility: 4.6.21 -> 4.7.2; wooting-udev-rules: update to latest recommended rules (#357836) 2024-12-26 10:21:49 +00:00
Linus Karl
b325158bc2 wooting: update module description 2024-12-26 00:41:03 +01:00
Ramses
4af8ef3cd7
Remove Some Static IDs (#367563) 2024-12-24 11:34:14 +01:00
Will Fancher
55e8064b0b Revert "nixis/uinput: use a fixed GID for the uinput group"
This reverts commit 70119aa60f.
2024-12-23 01:21:59 -05:00
Edward Tjörnhammar
438969f9ee nixos/nvidia: add nvidia_dc_565 drivers
Also remove dc_520
2024-12-19 16:53:08 +00:00
Edward Tjörnhammar
51fabd133e nixos/nvidia: run nixfmt on nvidia related files 2024-12-19 16:53:08 +00:00
Wolfgang Walther
df929235ee
steam-devices-udev-rules: init at 1.0.0.61-unstable-2024-05-22; nixos/hardware.steam-hardware: use steam-devices-udev-rules (#363563) 2024-12-15 20:02:56 +01:00
misuzu
c305a64255
nixos/nvidia: make VA-API support optional (#364945) 2024-12-14 12:34:08 +02:00
jopejoe1
dfd7b67092
nixos: add option hardware.enableAllHardware (#364479) 2024-12-14 00:03:52 +00:00
Moritz Sanft
fad6e19f35
nixos/nvidia: make VA-API support optional
This adds a knob to disable VA-API support. For use-cases like AI servers, which do not need to perform video acceleration, this can be a useful tweak to reduce size of the system closure a lot, as the VA-API drivers are heavy.

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2024-12-13 16:09:21 +01:00
Torben Schweren
6cc454478d
nixos/inputmodule: init module 2024-12-12 22:58:26 +01:00
DavHau
4e77d446f7 all-hardware.nix: format with nixfmt 2024-12-12 16:47:27 +07:00
DavHau
08783a39b0 nixos: add option hardware.enableAllHardware
This allows users to simply enable support for all hardware by enabling the option `hardware.enableAllHardware`, instead of having to import `modules/profiles/all-hardware.nix`.

This is better, as the enableAllHardware option will be discoverable via search.nixos.org, while the `all-hardware.nix` is hidden inside nixpkgs and hard to discover.

Backward compatibility is provided by replacing the old `profiles/all-hardware.nix` with a file that sets the `enableAllHardware` option to true.
2024-12-12 16:45:25 +07:00
DavHau
45628b1432 all-hardware: move to hardware/all-hardware.nix 2024-12-12 12:26:36 +07:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Zhong Jianxin
92b3ce1cdd nixos/hardware.steam-hardware: use steam-devices-udev-rules
ValveSoftware maintains an [udev rules repo][1] to help downstream distributions.

`steam-devices-udev-rules` is created from that, and contains only udev rules.

The udev rules contents are the some as `steam-unwrapped`.

`hardware.steam-hardware.enable` option is also useful for apps like
`cemu` and `rpcs3`, after this, it can be enabled without enabling
`nixpkgs.config.allowUnfree` and installing `steam-unwrapped`.

[1]: https://github.com/ValveSoftware/steam-devices
2024-12-08 19:04:46 +08:00
Aleksana
88bd81e177
gkraken,nixos/gkraken: Drop (#358200) 2024-11-30 10:54:30 +08:00
OPNA2608
ee25f37003 gkraken,nixos/gkraken: Drop
It was switched to maintenance mode on 2020-12-09[1], and marked deprecated in favour of Coolero/CoolerControl on 2022-02-23[2].

We have CoolerControl packaged since 24.05[3], so we can now drop gkraken.

[1]: https://gitlab.com/leinardi/gkraken/-/releases/0.14.5
[2]: https://gitlab.com/leinardi/gkraken/-/releases/1.2.0
[3]: c981cb00dd
2024-11-23 14:40:23 +01:00
Martin Weinelt
2b2a669741
nixos/coral: init
Provides a small wrapper to enable support for Coral USB and PCIe
devices.
2024-11-22 17:59:34 +01:00
K900
5703364874
nixos/graphics: clarify assertion message for enable32Bit configuration (#355033) 2024-11-12 06:17:47 +03:00
Cryolitia PukNgae
8b1cd0960b
nixos/graphics: clarify assertion message for enable32Bit configuration
The original message is really confusing, when you wrongly enable it on aarch64.
2024-11-12 11:15:26 +08:00
Franz Pletz
f1b26f503a
nitrokey-udev-rules: init at 1.0.0 (#352481) 2024-11-11 10:54:55 +01:00
Sandro
a4e9a2f859
tuxedo-keyboard: fix compilation for kernel 6.10 and 6.11 (#336633) 2024-11-05 16:43:58 +01:00