Use host.pkgs.stdenv.hostPlatform
This commit is contained in:
@@ -488,12 +488,7 @@ in
|
|||||||
extraConfig = { options, ... }: {
|
extraConfig = { options, ... }: {
|
||||||
_file = "module at ${__curPos.file}:${toString __curPos.line}";
|
_file = "module at ${__curPos.file}:${toString __curPos.line}";
|
||||||
config = {
|
config = {
|
||||||
nixpkgs = if options.nixpkgs?pkgs && host.options.nixpkgs.pkgs.isDefined
|
nixpkgs = { inherit (host.pkgs.stdenv) hostPlatform; };
|
||||||
then { inherit (host.config.nixpkgs) pkgs; }
|
|
||||||
else if options.nixpkgs?hostPlatform && host.options.nixpkgs.hostPlatform.isDefined
|
|
||||||
then { inherit (host.config.nixpkgs) hostPlatform; }
|
|
||||||
else { inherit (host.config.nixpkgs) localSystem; }
|
|
||||||
;
|
|
||||||
boot.isContainer = true;
|
boot.isContainer = true;
|
||||||
networking.hostName = mkDefault name;
|
networking.hostName = mkDefault name;
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user