From 713e0478a61d23a63aecfd6e698ca0cc92cc9003 Mon Sep 17 00:00:00 2001 From: nikstur Date: Sun, 2 Feb 2025 22:31:25 +0100 Subject: [PATCH] nixos/tests/userborn: fix setting hostPlatform --- nixos/tests/userborn-immutable-etc.nix | 6 +++--- nixos/tests/userborn-immutable-users.nix | 6 +++--- nixos/tests/userborn-mutable-etc.nix | 6 +++--- nixos/tests/userborn-mutable-users.nix | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/nixos/tests/userborn-immutable-etc.nix b/nixos/tests/userborn-immutable-etc.nix index e95fba23063ba..68c521b19148d 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 887d2d312eb7c..c7a8176a00c1b 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 6199b84ce71df..0f82c003f94ca 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 e2b9c3df49539..fd256425556cf 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 ];