dynix/tests/basic/test.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2026-02-09 14:32:56 +01:00
{ dynix, ... }:
2026-02-06 17:12:02 +01:00
{
name = "nixos-test-dynamicism-main";
defaults = { ... }: { };
extraPythonPackages = p: [
p.beartype
];
nodes.machine = { pkgs, config, ... }: {
2026-02-09 14:32:56 +01:00
# NOTE: Anything in this `nodes.machine = ` module will not be included
# in the VM's NixOS configuration once it does `nixos-rebuild switch`,
# except for `./configuration.nix` which will be copied to `/etc/nixos/`.
# dynix will also be statefully installed to root's user profile.
imports = [
./configuration.nix
(toString dynix)
];
2026-02-06 17:12:02 +01:00
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;
}