diff --git a/nixos/tests/userborn-immutable-etc.nix b/nixos/tests/userborn-immutable-etc.nix index e95fba23063b..68c521b19148 100644 --- a/nixos/tests/userborn-immutable-etc.nix +++ b/nixos/tests/userborn-immutable-etc.nix @@ -20,7 +20,7 @@ in meta.maintainers = with lib.maintainers; [ nikstur ]; nodes.machine = - { config, ... }: + { pkgs, ... }: { imports = [ common ]; @@ -36,8 +36,8 @@ in specialisation.new-generation = { inheritParentConfig = false; configuration = { - nixpkgs = { - inherit (config.nixpkgs) hostPlatform; + nixpkgs.hostPlatform = { + inherit (pkgs.stdenv.hostPlatform) system; }; imports = [ common ]; diff --git a/nixos/tests/userborn-immutable-users.nix b/nixos/tests/userborn-immutable-users.nix index 887d2d312eb7..c7a8176a00c1 100644 --- a/nixos/tests/userborn-immutable-users.nix +++ b/nixos/tests/userborn-immutable-users.nix @@ -16,7 +16,7 @@ in meta.maintainers = with lib.maintainers; [ nikstur ]; nodes.machine = - { config, ... }: + { pkgs, ... }: { imports = [ common ]; @@ -32,8 +32,8 @@ in specialisation.new-generation = { inheritParentConfig = false; configuration = { - nixpkgs = { - inherit (config.nixpkgs) hostPlatform; + nixpkgs.hostPlatform = { + inherit (pkgs.stdenv.hostPlatform) system; }; imports = [ common ]; diff --git a/nixos/tests/userborn-mutable-etc.nix b/nixos/tests/userborn-mutable-etc.nix index 6199b84ce71d..0f82c003f94c 100644 --- a/nixos/tests/userborn-mutable-etc.nix +++ b/nixos/tests/userborn-mutable-etc.nix @@ -20,7 +20,7 @@ in meta.maintainers = with lib.maintainers; [ nikstur ]; nodes.machine = - { config, ... }: + { pkgs, ... }: { imports = [ common ]; @@ -36,8 +36,8 @@ in specialisation.new-generation = { inheritParentConfig = false; configuration = { - nixpkgs = { - inherit (config.nixpkgs) hostPlatform; + nixpkgs.hostPlatform = { + inherit (pkgs.stdenv.hostPlatform) system; }; imports = [ common ]; diff --git a/nixos/tests/userborn-mutable-users.nix b/nixos/tests/userborn-mutable-users.nix index e2b9c3df4953..fd256425556c 100644 --- a/nixos/tests/userborn-mutable-users.nix +++ b/nixos/tests/userborn-mutable-users.nix @@ -16,7 +16,7 @@ in meta.maintainers = with lib.maintainers; [ nikstur ]; nodes.machine = - { config, ... }: + { pkgs, ... }: { imports = [ common ]; @@ -33,8 +33,8 @@ in specialisation.new-generation = { inheritParentConfig = false; configuration = { - nixpkgs = { - inherit (config.nixpkgs) hostPlatform; + nixpkgs.hostPlatform = { + inherit (pkgs.stdenv.hostPlatform) system; }; imports = [ common ];