1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/modules/profiles
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
..
keys
all-hardware.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
base.nix Revert "nixos/profiles/base: install vim w/nix-syntax plugin" 2024-09-22 15:16:39 -04:00
clone-config.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
demo.nix profiles/demo: rename services.xserver.displayManager 2024-04-16 13:42:02 +02:00
docker-container.nix treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
graphical.nix nixos/graphical: don't enable Pulseaudio 2024-09-04 13:56:42 +03:00
hardened.nix nixos/hardened: update hardened profile to new recommendations 2024-01-27 20:43:58 +00:00
headless.nix
image-based-appliance.nix
installation-device.nix nixos/installation-device: use a bigger hammer 2024-09-03 10:53:25 +03:00
macos-builder.nix Revert "modules/virtualisation: add shared options, merge various diskSize options" (#340894) 2024-09-10 03:12:55 +02:00
minimal.nix nixos/profiles/minimal: set fonts.enableDefaultPackages which was previously set by environment.noXLibs 2024-09-22 20:21:16 +02:00
perlless.nix nixos/perlless: remove redundant system.switch.enableNg 2024-09-06 08:35:43 +01:00
qemu-guest.nix treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00