From 95a2aa5da4e5f0ccbc71b61d5b8b9135b2fa8655 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 3 Feb 2025 21:33:59 +0000 Subject: [PATCH] =?UTF-8?q?linux-builder:=20don=E2=80=99t=20read=20`nixpkg?= =?UTF-8?q?s.hostPlatform`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is discouraged by NixOS and broke with recent changes. --- modules/nix/linux-builder.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nix/linux-builder.nix b/modules/nix/linux-builder.nix index ae39547f..82e1cb58 100644 --- a/modules/nix/linux-builder.nix +++ b/modules/nix/linux-builder.nix @@ -124,9 +124,9 @@ in systems = mkOption { type = types.listOf types.str; - default = [ cfg.package.nixosConfig.nixpkgs.hostPlatform.system ]; + default = [ cfg.package.nixosConfig._module.args.pkgs.stdenv.hostPlatform.system ]; defaultText = '' - The `nixpkgs.hostPlatform.system` of the build machine's final NixOS configuration. + The `stdenv.hostPlatform.system` of the build machine's final Nixpkgs instantiation. ''; example = literalExpression '' [