tests.basic -> tests.gotosocial

This commit is contained in:
Qyriad 2026-02-10 14:19:55 +01:00
parent 68e9b9a1e4
commit 1f466b63d3
9 changed files with 23 additions and 16 deletions

44
tests/gotosocial/test.nix Normal file
View file

@ -0,0 +1,44 @@
{ 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;
}