mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
lib/images: migrate to nixpkgs.hostPlatform
for mkHost
This commit is contained in:
parent
53d2e10607
commit
396a25f797
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user