From 396a25f797d1e9e5d0fc19291fe18823a244f681 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 10 Dec 2023 20:23:53 +0800 Subject: [PATCH] lib/images: migrate to `nixpkgs.hostPlatform` for `mkHost` --- lib/images.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/images.nix b/lib/images.nix index b7d05e9e..67720579 100644 --- a/lib/images.nix +++ b/lib/images.nix @@ -7,9 +7,9 @@ mkHost = { system, extraModules ? [ ], extraArgs ? { }, nixpkgs-channel ? "nixpkgs" }: (lib.makeOverridable inputs."${nixpkgs-channel}".lib.nixosSystem) { # The system of the NixOS system. - inherit system lib; + inherit lib; specialArgs = extraArgs; - modules = extraModules; + modules = extraModules ++ [{ nixpkgs.hostPlatform = system; }]; }; # A wrapper around the home-manager configuration function.