nixpkgs/nixos/modules/misc
Wolfgang Walther 0a19371146
nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only
The description for options.nixpkgs.system already hints at this:

  Neither ${opt.system} nor any other option in nixpkgs.* is meant
  to be read by modules and configurations.
  Use pkgs.stdenv.hostPlatform instead.

We can support this goal by not elaborating the systems anymore, forcing
users to go via pkgs.stdenv.

This will prevent problems when making the top-level package sets
composable in the next commit. For this to work, you should pass a fully
elaborated system to nixpkgs' localSystem or crossSystem options.
2025-02-01 12:04:59 +01:00
..
documentation treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nixpkgs nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only 2025-02-01 12:04:59 +01:00
assertions.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
crashdump.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
documentation.nix nixos/documentation: Link Devhelp files (#218123) 2024-12-01 11:25:40 +02:00
extra-arguments.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
ids.nix nixos/ids: Link to RFC #52 and explain that static IDs are not allowed. 2024-12-23 17:01:59 -05:00
label.nix nixos/label: fix typo: loosing=>losing (#365294) 2024-12-15 11:29:30 +02:00
lib.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
locate.nix nixos/modules: drop findutils locate support 2025-01-21 18:21:04 +01:00
man-db.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
mandoc.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
meta.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nixops-autoluks.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nixpkgs-flake.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nixpkgs.nix nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only 2025-02-01 12:04:59 +01:00
passthru.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
version.nix treewide: Fix incorrect string escapes 2025-01-07 19:49:28 +01:00
wordlist.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00