dynix/tests/gotosocial/test.nix
2026-02-17 19:48:53 +01:00

28 lines
768 B
Nix

{ mkDynixConfigurationDotNix, config, ... }:
let
testName = config.name;
in
{
name = "nixos-test-dynamicism-gotosocial";
defaults = { ... }: { };
extraPythonPackages = p: [
p.beartype
];
nodes.machine = { ... }: {
# 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 ];
passthru.configurationDotNix = mkDynixConfigurationDotNix {
name = testName;
configuration = ./configuration.nix;
};
};
testScript = builtins.readFile ./test-script.py;
}