diff --git a/src/nix/hive/tests/mod.rs b/src/nix/hive/tests/mod.rs index 773c94b..417bac1 100644 --- a/src/nix/hive/tests/mod.rs +++ b/src/nix/hive/tests/mod.rs @@ -281,6 +281,20 @@ fn test_nixpkgs_system() { }; } "#); + + TempHive::valid(r#" + { + meta = { + nixpkgs = import { + system = "x86_64-linux"; + }; + }; + test = { pkgs, ... }: { + nixpkgs.system = "armv5tel-linux"; + boot.isContainer = assert pkgs.system == "armv5tel-linux"; true; + }; + } + "#); } #[test]