{ dynix, ... }: { name = "nixos-test-dynamicism-main"; defaults = { ... }: { }; extraPythonPackages = p: [ p.beartype ]; nodes.machine = { pkgs, config, ... }: { # 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) ]; 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; }