1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-08 17:56:59 +00:00
nix-darwin/modules/nix
Emily 7c72c013b1 nixpkgs: make config.nixpkgs.{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.

Backport of Nixpkgs commit 0a19371146130c0e2a402fd0c35f8283b0e81910.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-02-03 20:54:01 +00:00
..
default.nix system: tweak ShellCheck settings 2025-01-18 19:34:21 +00:00
linux-builder.nix linux-builder: default maxJobs to amount of cores for Linux builder 2024-11-28 14:16:47 +11:00
nix-darwin.nix nix-tools: set $NIX_PATH 2025-01-20 05:29:44 +00:00
nixpkgs-flake.nix flake: put nixpkgs in NIX_PATH and system registry for flake configs 2024-09-11 08:24:41 +02:00
nixpkgs.nix nixpkgs: make config.nixpkgs.{buildPlatform,hostPlatform} write only 2025-02-03 20:54:01 +00:00