2026-02-11 13:19:59 +01:00
|
|
|
{ mkDynixConfigurationDotNix, config, ... }:
|
2026-02-16 18:02:39 +01:00
|
|
|
let
|
|
|
|
|
testName = config.name;
|
|
|
|
|
in
|
2026-02-06 17:12:02 +01:00
|
|
|
{
|
2026-02-10 14:59:44 +01:00
|
|
|
name = "nixos-test-dynamicism-gotosocial";
|
2026-02-06 17:12:02 +01:00
|
|
|
|
|
|
|
|
defaults = { ... }: { };
|
|
|
|
|
|
|
|
|
|
extraPythonPackages = p: [
|
|
|
|
|
p.beartype
|
|
|
|
|
];
|
|
|
|
|
|
2026-02-16 18:02:39 +01:00
|
|
|
nodes.machine = { ... }: {
|
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.
|
2026-02-10 14:59:44 +01:00
|
|
|
imports = [ ./configuration.nix ];
|
2026-02-06 17:12:02 +01:00
|
|
|
|
2026-02-16 18:02:39 +01:00
|
|
|
passthru.configurationDotNix = mkDynixConfigurationDotNix {
|
|
|
|
|
name = testName;
|
|
|
|
|
configuration = ./configuration.nix;
|
|
|
|
|
};
|
2026-02-06 17:12:02 +01:00
|
|
|
};
|
|
|
|
|
|
2026-02-10 14:59:44 +01:00
|
|
|
testScript = builtins.readFile ./test-script.py;
|
2026-02-06 17:12:02 +01:00
|
|
|
}
|