dynix/tests/gotosocial/test.nix
2026-02-13 20:47:30 +01:00

30 lines
816 B
Nix

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