0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00
Commit graph

639 commits

Author SHA1 Message Date
Silvan Mosberger
14182c1970 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.

(branch-equivalent to commit 374e6bcc40)
2025-04-01 20:11:51 +02:00
Mikael Voss
8f23b8302c nixos/iosched: exclude loop devices by default
(cherry picked from commit 54bd09a515)
2025-03-10 13:01:28 +01:00
Mikael Voss
5946d2a40d nixos/iosched: init module
(cherry picked from commit 3c0be38ee0)
2025-02-25 14:25:33 +01:00
piegames
f6ea57fd16 treewide: Fix incorrect string indentations
(cherry picked from commit dd7d5339f7)
2025-01-11 17:29:21 +01:00
piegames
772006e8c0 treewide: Fix incorrect string escapes
(cherry picked from commit 603733851b)
2025-01-11 17:29:20 +01:00
Mynacol
f8c83f45cc 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.

(cherry picked from commit e9d9adb73f)
2025-01-05 04:57:09 +00:00
Silvan Mosberger
d9d87c5196 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 0128fbb0a5
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:29:24 +01:00
Martin Weinelt
58082a70d1 nixos/coral: init
Provides a small wrapper to enable support for Coral USB and PCIe
devices.

(cherry picked from commit 2b2a669741)
2024-11-23 00:05:46 +00: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