nixpkgs/nixos/modules/tasks
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
..
filesystems nixos/services.nfs: remove with lib; 2024-09-15 10:43:58 +02:00
auto-upgrade.nix nixos/system.autoUpgrade: remove with lib; 2024-08-30 23:01:45 +02:00
bcache.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
cpu-freq.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
encrypted-devices.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
filesystems.nix nixos: Support fileSystems.<name>.depends with fstab-generator 2024-08-30 15:18:35 -04:00
lvm.nix nixos/tasks/lvm: assert kernel version for vdo 2024-08-23 19:59:34 +02:00
network-interfaces-scripted.nix nixos/network-interfaces: prevent failure when a network address already exists 2024-05-17 01:02:29 +02:00
network-interfaces-systemd.nix Revert "nixos/networking: use mkIfs on the inner attributes" 2024-05-31 13:05:19 +02:00
network-interfaces.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
powertop.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
scsi-link-power-management.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
stratis.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
swraid.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
trackpoint.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tty-backgrounds-combine.sh