nixpkgs/nixos/modules/config
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
..
fonts treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
gtk nixos/gtk.iconCache: remove with lib; 2024-08-29 23:45:29 +02:00
nix-channel
xdg gnome-session: Move from gnome scope to top-level 2024-09-01 14:16:31 +02:00
appstream.nix nixos/appstream: remove with lib; 2024-08-29 23:45:28 +02:00
console.nix nixos/console: remove with lib; 2024-08-29 23:45:29 +02:00
debug-info.nix debug-info: remove with lib; 2024-08-29 23:45:29 +02:00
fanout.nix
i18n.nix treewide: fix eval related to with lib; removal 2024-09-04 12:21:09 -04:00
iproute2.nix nixos/networking.iproute2: remove with lib; 2024-08-29 23:45:30 +02:00
ldap.nix nixos/ldap: avoid top-level with expression (#327992) 2024-07-19 11:19:51 +02:00
ldso.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
locale.nix nixos/time: remove with lib; 2024-08-29 23:45:30 +02:00
malloc.nix nixos/environment.memoryAllocator: remove with lib; 2024-08-29 23:45:30 +02:00
mysql.nix nixos/users.mysql: remove with lib; 2024-08-29 23:35:25 +02:00
networking.nix nixos/networking: remove with lib; 2024-08-29 23:45:30 +02:00
nix-channel.nix nixos/nix-channel: don't set nix-path (#327683) 2024-07-26 19:19:38 +00:00
nix-flakes.nix
nix-remote-build.nix
nix.nix nixos/nix: move trusted-user to config 2024-07-30 18:18:57 +02:00
nsswitch.nix nixos/system.nss*: remove with lib; 2024-08-29 23:45:31 +02:00
power-management.nix nixos/powerManagement: remove with lib; 2024-08-29 23:45:31 +02:00
pulseaudio.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
qt.nix
resolvconf.nix treewide: fix eval related to with lib; removal 2024-09-04 12:21:09 -04:00
shells-environment.nix nixos/shells-environment: remove with lib; 2024-08-30 22:58:31 +02:00
stevenblack.nix
stub-ld.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
swap.nix
sysctl.nix nixos/sysctl: remove with lib; 2024-08-30 22:58:31 +02:00
system-environment.nix nixos/environment: remove with lib; 2024-08-29 23:45:31 +02:00
system-path.nix nixos/environment.paths: remove with lib; 2024-08-29 23:48:07 +02:00
terminfo.nix nixos/environment.terminfo: remove with lib; 2024-08-29 23:48:08 +02:00
unix-odbc-drivers.nix nixos/environment.unix-odbc-drivers.nix: remove with lib; 2024-08-29 23:48:08 +02:00
update-users-groups.pl
users-groups.nix
vte.nix nixos/vte: remove with lib; 2024-08-29 23:48:08 +02:00
zram.nix