dynix/tests/basic/test.nix

44 lines
836 B
Nix
Raw Normal View History

2026-02-06 17:12:02 +01:00
{
pkgs,
lib,
config,
...
}:
{
name = "nixos-test-dynamicism-main";
defaults = { ... }: { };
#node.pkgsReadOnly = false;
extraPythonPackages = p: [
p.beartype
];
nodes.machine = { pkgs, config, ... }: {
imports = [ ./configuration.nix ];
system.includeBuildDependencies = true;
system.switch.enable = true;
virtualisation.additionalPaths = [ config.system.build.toplevel ];
virtualisation = {
memorySize = 4096;
cores = 4;
writableStore = true;
mountHostNixStore = true;
installBootLoader = true;
};
environment.systemPackages = let
configFileTree = pkgs.callPackage ./configuration-package.nix { };
in [
configFileTree
];
};
# What's a little IFD between friends?
testScript = ./test-script.py
|> builtins.readFile;
}