From 0600255046b085870a44a6385bd66dd9f171661b Mon Sep 17 00:00:00 2001 From: Gabriella Gonzalez Date: Sun, 18 Aug 2024 16:49:57 -0700 Subject: [PATCH] Use `host.pkgs.stdenv.hostPlatform` --- nixos/modules/virtualisation/nixos-containers.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nixos/modules/virtualisation/nixos-containers.nix b/nixos/modules/virtualisation/nixos-containers.nix index 7dc0eba205c6..32ec588d0f00 100644 --- a/nixos/modules/virtualisation/nixos-containers.nix +++ b/nixos/modules/virtualisation/nixos-containers.nix @@ -488,12 +488,7 @@ in extraConfig = { options, ... }: { _file = "module at ${__curPos.file}:${toString __curPos.line}"; config = { - nixpkgs = if options.nixpkgs?pkgs && host.options.nixpkgs.pkgs.isDefined - 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; } - ; + nixpkgs = { inherit (host.pkgs.stdenv) hostPlatform; }; boot.isContainer = true; networking.hostName = mkDefault name; networking.useDHCP = false;