Skip to content

Commit

Permalink
nixos/tests/userborn: fix setting hostPlatform (NixOS#378940)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Feb 3, 2025
2 parents 1217d58 + 713e047 commit 1e74431
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions nixos/tests/userborn-immutable-etc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ in
meta.maintainers = with lib.maintainers; [ nikstur ];

nodes.machine =
{ config, ... }:
{ pkgs, ... }:
{
imports = [ common ];

Expand All @@ -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 ];

Expand Down
6 changes: 3 additions & 3 deletions nixos/tests/userborn-immutable-users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in
meta.maintainers = with lib.maintainers; [ nikstur ];

nodes.machine =
{ config, ... }:
{ pkgs, ... }:
{
imports = [ common ];

Expand All @@ -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 ];

Expand Down
6 changes: 3 additions & 3 deletions nixos/tests/userborn-mutable-etc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ in
meta.maintainers = with lib.maintainers; [ nikstur ];

nodes.machine =
{ config, ... }:
{ pkgs, ... }:
{
imports = [ common ];

Expand All @@ -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 ];

Expand Down
6 changes: 3 additions & 3 deletions nixos/tests/userborn-mutable-users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in
meta.maintainers = with lib.maintainers; [ nikstur ];

nodes.machine =
{ config, ... }:
{ pkgs, ... }:
{
imports = [ common ];

Expand All @@ -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 ];

Expand Down

0 comments on commit 1e74431

Please sign in to comment.