From f81c30d7d957e901994acc54241db8a6e51ab5ed Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 14 Sep 2023 15:33:10 +0200 Subject: [PATCH] module: use kernel package hostPlatform if nixpkgs.hostPlatform is not available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes, it is not… --- nix/modules/lanzaboote.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/modules/lanzaboote.nix b/nix/modules/lanzaboote.nix index d55e825..ac586c6 100644 --- a/nix/modules/lanzaboote.nix +++ b/nix/modules/lanzaboote.nix @@ -104,7 +104,7 @@ in ''} ${cfg.package}/bin/lzbt install \ - --system ${config.nixpkgs.hostPlatform.system} \ + --system ${config.nixpkgs.hostPlatform.system or config.boot.kernelPackages.stdenv.hostPlatform.system} \ --systemd ${config.systemd.package} \ --systemd-boot-loader-config ${loaderConfigFile} \ --public-key ${cfg.publicKeyFile} \