1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/modules
Nick Novitski d21ba5a487 linux-builder: make compatible with cross-arch builder package
Before this commit, aarch64 users building the following configuration
would end up with an aarch64-linux builder, while after it, they get the
x86_64-linux builder they expect:
```nix
 nix.linux-builder = {
  enable = true;
  package = pkgs.darwin.linux-builder-x86_64;
};
```

Before, in order to get an x86_64-linux builder, they would have needed
to use this configuration instead:
```nix
 nix.linux-builder = {
  enable = true;
  config.nixpkgs.hostPlatform = "x86_64-linux";
  systems = ["x86_64-linux"];
};
```

The reason for this is that the linux-builder module calls `override` on
the package option, and the `linux-builder-x86_64` package is also
defined using override:
```nix
linux-builder-x86_64 = linux-builder.override {
  modules = [ { nixpkgs.hostPlatform = "x86_64-linux"; } ];
};
```

The module was effectively discarding the `nixpkgs.hostPlatform` option.

Example issue: https://github.com/NixOS/nixpkgs/issues/313784
2024-06-16 14:03:41 -07:00
..
documentation treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
environment environment: Adjust systemPath order to allow injecting in the middle 2024-05-23 09:55:35 -04:00
examples Add zsh completions to darwin-rebuld by default 2024-01-27 19:37:27 -08:00
fonts treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
launchd treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
lib treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
misc treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
networking treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
nix linux-builder: make compatible with cross-arch builder package 2024-06-16 14:03:41 -07:00
programs Change zsh default prompt 2024-05-20 09:48:03 +02:00
security treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
services hercules-ci-agent: fix crash calling security 2024-05-21 23:16:46 +10:00
system feat: add defaults screencapture show-thumbnail option 2024-06-06 17:40:24 +01:00
time treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
users treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
alias.nix Update def and implementation of nix.package to match NixOS module 2022-08-16 10:41:51 -07:00
homebrew.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
meta.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
module-list.nix Add nix.optimise module 2024-03-27 12:50:04 -07:00