nixpkgs/nixos/modules/hardware
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
..
cpu nixos/amd-microcode: remove alias 2024-09-08 15:15:12 +08:00
keyboard nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
network nixos/networking.enableB43Firmware: remove with lib; 2024-08-30 22:59:19 +02:00
onlykey nixos/hardware.onlykey: remove with lib; 2024-08-30 22:59:20 +02:00
raid nixos/hpsa: remove with lib; 2024-08-30 22:59:21 +02:00
sensor nixos/hardware.sensor.iio: remove with lib; 2024-08-30 22:59:21 +02:00
video nixos/nvidia: assert open option is manually set on drivers >= 560 2024-09-16 13:04:39 -04:00
acpilight.nix nixos/hardware.acpilight: remove with lib; 2024-08-29 23:48:10 +02:00
all-firmware.nix nixos/hardware.enableAllFirmware: remove with lib; 2024-08-29 23:48:10 +02:00
bladeRF.nix nixos/hardware.bladeRF: remove with lib; 2024-08-29 23:48:10 +02:00
brillo.nix nixos/hardware.brillo: remove with lib; 2024-08-29 23:48:11 +02:00
ckb-next.nix nixos/hardware.ckb-next: remove with lib; 2024-08-29 23:48:11 +02:00
corectrl.nix nixos/hardware.corectrl: remove with lib; 2024-08-29 23:48:11 +02:00
decklink.nix nixos/decklink: init 2024-07-14 20:42:52 +02:00
device-tree.nix nixos/hardware/deviceTree: remove with lib; 2024-08-30 00:30:34 +02:00
digitalbitbox.nix nixos/hardware.digitalbitbox: remove with lib; 2024-08-30 22:58:33 +02:00
flipperzero.nix nixos/hardware.flipperzero: remove with lib; 2024-08-30 00:30:36 +02:00
flirc.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
gkraken.nix nixos/hardware.gkraken: remove with lib; 2024-08-30 00:30:37 +02:00
glasgow.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
gpgsmartcards.nix nixos/hardware.gpgSmartcards: remove with lib; 2024-08-30 00:30:37 +02:00
graphics.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
hackrf.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
i2c.nix nixos/hardware.i2c: remove with lib; 2024-08-30 00:30:37 +02:00
infiniband.nix nixos/hardware.infiniband: remove with lib; 2024-08-30 00:30:37 +02:00
ksm.nix nixos/hardware.ksm: remove with lib; 2024-08-30 22:58:33 +02:00
ledger.nix nixos/hardware.ledger: remove with lib; 2024-08-30 22:58:33 +02:00
logitech.nix nixos/hardware.logitech: remove with lib; 2024-08-30 22:58:33 +02:00
mcelog.nix nixos/hardware.mcelog: remove with lib; 2024-08-30 22:58:34 +02:00
new-lg4ff.nix nixos/hardware.new-lg4ff: remove with lib; 2024-08-30 22:59:19 +02:00
nitrokey.nix nixos/hardware.nitrokey: remove with lib; 2024-08-30 22:59:20 +02:00
openrazer.nix nixos/hardware.openrazer: remove with lib; 2024-08-30 22:59:20 +02:00
opentabletdriver.nix nixos/hardware.opentabletdriver: remove with lib; 2024-08-30 22:59:20 +02:00
pcmcia.nix nixos/hardware.pcmcia: remove with lib; 2024-08-30 22:59:21 +02:00
printers.nix nixos/hardware.printers: remove with lib; 2024-08-30 22:59:21 +02:00
rtl-sdr.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
saleae-logic.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
sata.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
steam-hardware.nix nixos/hardware.steam-hardware: remove with lib; 2024-08-30 22:59:21 +02:00
system-76.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tuxedo-keyboard.nix nixos/hardware.tuxedo-keyboard: remove with lib; 2024-08-30 22:59:22 +02:00
ubertooth.nix nixos/hardware.ubertooth: remove with lib; 2024-08-30 22:59:22 +02:00
uinput.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
uni-sync.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
usb-modeswitch.nix nixos/hardware.usb-modeswitch: remove with lib; 2024-08-30 22:59:22 +02:00
usb-storage.nix nixos/hardware.usb-storage: remove with lib; 2024-08-30 22:59:22 +02:00
wooting.nix nixos/hardware.wooting: remove with lib; 2024-08-30 22:59:23 +02:00
xone.nix nixos/hardware.xone: remove with lib; 2024-08-30 22:59:24 +02:00
xpadneo.nix nixos/hardware.xpadneo: remove with lib; 2024-08-30 22:59:24 +02:00