IT WORKS
This commit is contained in:
parent
da509d97c7
commit
3765e918d6
18 changed files with 348 additions and 226 deletions
|
|
@ -1,5 +1,7 @@
|
|||
{ mkDynixConfigurationDotNix, config, ... }:
|
||||
|
||||
let
|
||||
testName = config.name;
|
||||
in
|
||||
{
|
||||
name = "nixos-test-dynamicism-gotosocial";
|
||||
|
||||
|
|
@ -9,21 +11,17 @@
|
|||
p.beartype
|
||||
];
|
||||
|
||||
nodes.machine = { pkgs, ... }: {
|
||||
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 ];
|
||||
|
||||
environment.systemPackages = let
|
||||
configFileTree = mkDynixConfigurationDotNix {
|
||||
inherit (config) name;
|
||||
configuration = ./configuration.nix;
|
||||
};
|
||||
in [
|
||||
configFileTree
|
||||
];
|
||||
passthru.configurationDotNix = mkDynixConfigurationDotNix {
|
||||
name = testName;
|
||||
configuration = ./configuration.nix;
|
||||
};
|
||||
};
|
||||
|
||||
testScript = builtins.readFile ./test-script.py;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue