1
0
forked from clan/clan-core

Fix wrong unit tests

This commit is contained in:
Johannes Kirschbauer 2024-08-01 14:27:07 +02:00
parent ef58bea020
commit ac6b7f84e0
Signed by: hsjobeki
SSH Key Fingerprint: SHA256:vX3utDqig7Ph5L0JPv87ZTPb/w7cMzREKVZzzLFg9qU
2 changed files with 4 additions and 5 deletions

View File

@ -38,8 +38,5 @@ eval {
rest
# implementation
./module.nix
# Explicit output, usually defined by flake-parts
{ options.nixosConfigurations = lib.mkOption { type = lib.types.raw; }; }
];
}

View File

@ -17,8 +17,10 @@
initialized = inputs.nixpkgs.legacyPackages.x86_64-linux.runCommand "minimal-clan-flake" { } ''
mkdir $out
cp -r ${path}/* $out
mkdir -p $out/machines/foo
echo '{ "nixpkgs": { "hostPlatform": "x86_64-linux" } }' > $out/machines/foo/settings.json
rm $out/inventory.json
# TODO: Instead create a machine by calling the API, this wont break in future tests and is much closer to what the user performs
echo '{ "machines": { "foo": { "name": "foo" } } }' > $out/inventory.json
'';
evaled = (import "${initialized}/flake.nix").outputs {
self = evaled // {