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 nixos/nix-channel.nix: shellcheck and fix the activation check 2024-07-16 22:09:33 +02:00
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 nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
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 nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
nix-remote-build.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
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 nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
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 nixos/stevenblack: rework to use distinct package outputs 2024-07-05 23:30:26 -04:00
stub-ld.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
swap.nix nixos/swap: add progress to swapfile creation 2024-07-17 17:33:03 -04:00
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 nixos: Set home directory parent tree permissions to 0755 2024-07-09 23:09:09 +02:00
users-groups.nix nixos/users-groups: avoid top level with lib; use lib before builtins (#327757) 2024-07-17 20:00:54 +02:00
vte.nix nixos/vte: remove with lib; 2024-08-29 23:48:08 +02:00
zram.nix nixos/zram: add compression algorithms to option enum 2024-04-16 15:39:31 -07:00