Commit graph

701 commits

Author SHA1 Message Date
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
Jan B. 4391c3883b
nixos/tuxedo-drivers: init 2024-11-03 22:54:56 +01:00
Guillaume Girol 796d87a639
corectrl: adopt and modernize (#352151) 2024-11-01 15:35:04 +01:00
Robin Krahl bed43b4461
nixos/hardware.nitrokey: update documentation
The nitrokey group has been removed in #108319.
2024-10-30 23:44:35 +01:00
Josh Spicer e727b10cc0
nixos/hackrf: document group requirement (#344118) 2024-10-30 18:26:15 +08:00
Robin Krahl 38ec993a58
nixos/hardware.nitrokey: replace libnitrokey with nitrokey-udev-rules
As libnitrokey is no longer developed, the udev rules have been moved to
a separate repository, nitrokey-udev-rules, that is now also available
as a package in nixpkgs.

See also: https://github.com/NixOS/nixpkgs/issues/351921
2024-10-30 09:59:51 +01:00
Sefa Eyeoglu 4c7ab52fcb
nixos/corectrl: nixfmt and refactor
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-29 18:53:31 +01:00
Sefa Eyeoglu 0269ce97e6
nixos/corectrl: add Scrumplex as maintainer
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-29 18:51:18 +01:00
andre4ik3 c42b24b3f4
nixos/apple-touchbar: init module (#350219) 2024-10-23 17:14:34 +02:00
scrufulufugus a1c03ab062 system76-power: Move out of kernel category
system76-power: add alias at old location
2024-10-17 18:22:34 +02:00
K900 5c33791df3 steam (and friends): migrate to by-name, small cleanups all over
- rename "steam-original" or "steam" to "steam-unwrapped", as that's what it is
- rename "steam-fhsenv" to "steam", as that's what you actually want
- remove some no-longer-relevant hacks
2024-10-16 23:27:24 +03:00
Matej Cotman f53387e15a ipu6: update packages
This updates the ipu6 driver and firmware to a more recent version,
which seems to at least work in Chrom{e,ium}.

ipu6-drivers now relies on the in-kernel ipu6 kernel driver, so we
update our logic and metadata for it.
2024-10-12 00:45:04 +03:00
Will Fancher aad455b434
nixos/usbStorage: apply upstream (#284334) 2024-10-06 19:39:07 -04:00
r-vdp 70119aa60f
nixis/uinput: use a fixed GID for the uinput group 2024-10-05 10:21:26 +02:00
r-vdp 469f505813
nixos/{uinput,ids}: format 2024-10-05 10:21:01 +02:00
Lin Jian 11f1d318f6
nixos/graphics: fix typo
Searching hardware.*.extraPackages on search.nixos.org[1] shows there
is only hardware.graphics.extraPackages.

[1]: https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=hardware.*.extraPackages
2024-09-26 09:08:43 +08:00
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
bb2020 75d77524ac nixos/usbStorage: apply upstream 2024-09-22 10:48:25 +03:00
Sandro b3c4e7f536
nixos/nvidia: assert open option is manually set on drivers >= 560 (#339025) 2024-09-17 11:32:47 +02:00
seth 43764ae2c3
nixos/nvidia: assert open option is manually set on drivers >= 560
This requirement was introduced in
https://github.com/NixOS/nixpkgs/pull/337289 as a way to make sure users
"explicitly pick which version of the driver they want since nvidia
recommends the open one, but that is incompatible with older drivers".
This is reasonable, however the user isn't informed in any real way
aside from the upcoming release notes

This has caused a
[good](https://github.com/NixOS/nixpkgs/pull/337289#issuecomment-2313802016)
[amount](https://github.com/NixOS/nixpkgs/pull/337289#issuecomment-2318571311)
[of](https://github.com/NixOS/nixpkgs/issues/338196)
[confusion](https://github.com/NixOS/nixos-hardware/issues/1092) amongst
users. By introducing this assertion and using a new `useOpenModules`
local variable, we can have the same behavior but display a proper error
message to hopefully clear things up until we can safely make this a
default
2024-09-16 13:04:39 -04:00
Guanran Wang bde8f99741
nixos/amd-microcode: remove alias 2024-09-08 15:15:12 +08:00
Guanran Wang a55aaa547c
nixos/intel-microcode: remove alias 2024-09-08 15:11:50 +08:00
Philip Taron 9916dc8728
treewide/nixos: remove with lib; part 2 (#335618) 2024-08-30 15:56:57 -07:00
Felix Buehler 0db2200f7e nixos/hardware.xpadneo: remove with lib; 2024-08-30 22:59:24 +02:00
Felix Buehler 17fb9386ad nixos/hardware.xone: remove with lib; 2024-08-30 22:59:24 +02:00
Felix Buehler d0bcf277bf nixos/hardware.wooting: remove with lib; 2024-08-30 22:59:23 +02:00
Felix Buehler bbe907f0a9 nixos/hardware.facetimehd: remove with lib; 2024-08-30 22:59:23 +02:00
Felix Buehler 4fa8726a44 nixos/hardware.uvcvideo: remove with lib; 2024-08-30 22:59:23 +02:00
Felix Buehler 500d530cf8 nixos/hardware.displaylink: remove with lib; 2024-08-30 22:59:23 +02:00
Felix Buehler 8470a58158 nixos/hardware.mwProCapture: remove with lib; 2024-08-30 22:59:23 +02:00
Felix Buehler 97d41bd9af nixos/hardware.bumblebee: remove with lib; 2024-08-30 22:59:22 +02:00
Felix Buehler 09c8cfddd2 nixos/hardware.usb-storage: remove with lib; 2024-08-30 22:59:22 +02:00
Felix Buehler 1f149110c4 nixos/hardware.usb-modeswitch: remove with lib; 2024-08-30 22:59:22 +02:00
Felix Buehler 8f0023457d nixos/hardware.ubertooth: remove with lib; 2024-08-30 22:59:22 +02:00
Felix Buehler 8623af5c38 nixos/hardware.tuxedo-keyboard: remove with lib; 2024-08-30 22:59:22 +02:00
Felix Buehler 12a3b2f7af nixos/hardware.steam-hardware: remove with lib; 2024-08-30 22:59:21 +02:00
Felix Buehler 024f4f89ae nixos/hardware.sensor.iio: remove with lib; 2024-08-30 22:59:21 +02:00
Felix Buehler 4d2a1391de nixos/hpsa: remove with lib; 2024-08-30 22:59:21 +02:00
Felix Buehler 22946376a9 nixos/hardware.printers: remove with lib; 2024-08-30 22:59:21 +02:00
Felix Buehler ea6befd73f nixos/hardware.pcmcia: remove with lib; 2024-08-30 22:59:21 +02:00
Felix Buehler 76c3bcd9e3 nixos/hardware.opentabletdriver: remove with lib; 2024-08-30 22:59:20 +02:00
Felix Buehler 78026acac2 nixos/hardware.openrazer: remove with lib; 2024-08-30 22:59:20 +02:00
Felix Buehler ef54fd072b nixos/hardware.onlykey: remove with lib; 2024-08-30 22:59:20 +02:00
Felix Buehler b9bdcccba7 nixos/hardware.nitrokey: remove with lib; 2024-08-30 22:59:20 +02:00
Felix Buehler cf7feaca47 nixos/hardware.new-lg4ff: remove with lib; 2024-08-30 22:59:19 +02:00
Felix Buehler f31bf6ed29 nixos/networking.enableB43Firmware: remove with lib; 2024-08-30 22:59:19 +02:00
Felix Buehler e1e8351aaa nixos/networking.wireless.athUserRegulatoryDomain: remove with lib; 2024-08-30 22:59:09 +02:00
Felix Buehler 21ed56970e nixos/hardware.mcelog: remove with lib; 2024-08-30 22:58:34 +02:00
Felix Buehler 94dbe54a8d nixos/hardware.logitech: remove with lib; 2024-08-30 22:58:33 +02:00
Felix Buehler 3036edd1c1 nixos/hardware.ledger: remove with lib; 2024-08-30 22:58:33 +02:00
Felix Buehler 55f4ce28c8 nixos/hardware.ksm: remove with lib; 2024-08-30 22:58:33 +02:00
Felix Buehler d485dfece4 nixos/hardware.digitalbitbox: remove with lib; 2024-08-30 22:58:33 +02:00
Felix Buehler 5a78f2c772 nixos/intel-sgx: remove with lib; 2024-08-30 22:58:32 +02:00
Felix Buehler 9a213a3a5b nixos/intel-microcode: remove with lib; 2024-08-30 22:58:32 +02:00
Felix Buehler 921bb919d8 nixos/amd.sev: remove with lib; 2024-08-30 22:58:32 +02:00
Felix Buehler 4d24986578 nixos/amd-microcode: remove with lib; 2024-08-30 22:58:32 +02:00
Felix Buehler e880cd1549 nixos/hardware.infiniband: remove with lib; 2024-08-30 00:30:37 +02:00
Felix Buehler 58e31e0c26 nixos/hardware.i2c: remove with lib; 2024-08-30 00:30:37 +02:00
Felix Buehler 6d731ad2df nixos/hardware.gpgSmartcards: remove with lib; 2024-08-30 00:30:37 +02:00
Felix Buehler 166d20fb46 nixos/hardware.gkraken: remove with lib; 2024-08-30 00:30:37 +02:00
Felix Buehler 6f3aef9bde nixos/hardware.flipperzero: remove with lib; 2024-08-30 00:30:36 +02:00
Felix Buehler 0dac464dc8 nixos/hardware/deviceTree: remove with lib; 2024-08-30 00:30:34 +02:00
Felix Buehler f41312d751 nixos/hardware.corectrl: remove with lib; 2024-08-29 23:48:11 +02:00
Felix Buehler dd93025972 nixos/hardware.ckb-next: remove with lib; 2024-08-29 23:48:11 +02:00
Felix Buehler 374ad8d316 nixos/hardware.brillo: remove with lib; 2024-08-29 23:48:11 +02:00
Felix Buehler 6c0e1c7a9d nixos/hardware.bladeRF: remove with lib; 2024-08-29 23:48:10 +02:00
Felix Buehler 930af3e533 nixos/hardware.enableAllFirmware: remove with lib; 2024-08-29 23:48:10 +02:00
Felix Buehler be8d4ec87e nixos/hardware.acpilight: remove with lib; 2024-08-29 23:48:10 +02:00
Kiskae ef3b6ad33d nixos/nvidia: allow the gsp to be toggled independently from open source driver
fixes #323886
2024-08-25 21:51:17 +02:00
Kiskae 20c5d0adfb nixos/nvidia: make the nvidia driver variant a mandatory user choice
fixes #329450
2024-08-25 21:47:29 +02:00
eljamm 4548c39286
nixos/nvidia: fix CUDA for open driver
For the open driver, the `nvidia-uvm` module does not auto-load after
`nvidia`, which makes CUDA not work.

In this case, we need to add it to `boot.kernelModules` for it to work
again.
2024-08-13 11:56:10 +01:00
Shea Levy a9f862f7ab
Merge remote-tracking branch 'shlevy/ipu6-upstream' 2024-08-04 09:11:17 -04:00
Sandro 03dfa4c1da
Merge pull request #330260 from Luflosi/add/eg25-manager
eg25-manager: init at 0.4.6
2024-08-03 18:23:27 +02:00
Shea Levy 3bfeae1428
ipu6: Don't build out-of-tree driver for kernels that have it 2024-08-02 17:30:42 -04:00
Sandro e4a6568004
Merge pull request #312403 from alois31/rtw88 2024-07-31 13:14:18 +02:00
Alois Wohlschlager ec60e56b26
rtw88-firmware: drop
It's all part of linux-firmware now.
2024-07-31 10:26:51 +02:00
Franz Pletz 1e00e90307
Merge pull request #329450 from Kiskae/nvidia/560.28.03 2024-07-29 09:19:52 +02:00