dynix/tests/gotosocial/test.nix

32 lines
864 B
Nix

# SPDX-FileCopyrightText: 2026 Qyriad <qyriad@qyriad.me>
#
# SPDX-License-Identifier: EUPL-1.1
{ 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;
}