lib/images: migrate to nixpkgs.hostPlatform for mkHost

This commit is contained in:
Gabriel Arazas 2023-12-10 20:23:53 +08:00
parent 53d2e10607
commit 396a25f797
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -7,9 +7,9 @@
mkHost = { system, extraModules ? [ ], extraArgs ? { }, nixpkgs-channel ? "nixpkgs" }: mkHost = { system, extraModules ? [ ], extraArgs ? { }, nixpkgs-channel ? "nixpkgs" }:
(lib.makeOverridable inputs."${nixpkgs-channel}".lib.nixosSystem) { (lib.makeOverridable inputs."${nixpkgs-channel}".lib.nixosSystem) {
# The system of the NixOS system. # The system of the NixOS system.
inherit system lib; inherit lib;
specialArgs = extraArgs; specialArgs = extraArgs;
modules = extraModules; modules = extraModules ++ [{ nixpkgs.hostPlatform = system; }];
}; };
# A wrapper around the home-manager configuration function. # A wrapper around the home-manager configuration function.