fixup(checks/inventory): remove 'self' from clan settings; doesn't work in the nixos tests yet.

We need to reasearch why that is the case.
Removing the option for now to prevent weird bugs
This commit is contained in:
Johannes Kirschbauer
2025-04-12 12:41:04 +02:00
parent 9253a7502b
commit 65e1cf5b54
3 changed files with 3 additions and 16 deletions

View File

@@ -11,10 +11,8 @@
{
name = "data-mesher";
clanSettings = {
self = ./.;
};
clan = {
directory = ./.;
inventory = {
machines = lib.genAttrs machines (_: { });
services = {

View File

@@ -7,10 +7,8 @@
# - clan.service modules
name = "dummy-inventory-test";
clanSettings = {
self = ./.;
};
clan = {
directory = ./.;
inventory = {
machines.peer1 = { };
machines.admin1 = { };

View File

@@ -23,13 +23,6 @@ in
type = types.submodule {
options = {
clan-core = mkOption { default = self; };
self = mkOption {
default = throw ''
Clan testing: 'clanSettings.self' is required to be set explizitly during testing.
It is recommended to set 'clanSettings.self' during testing to the directory where the test lives in i.e. './.'
'';
};
nixpkgs = mkOption { default = self.inputs.nixpkgs; };
nix-darwin = mkOption { default = self.inputs.nix-darwin; };
};
@@ -42,7 +35,6 @@ in
specialArgs = {
inherit (config.clanSettings)
clan-core
self
nixpkgs
nix-darwin
;
@@ -94,5 +86,4 @@ in
node.specialArgs.self = self;
};
}
))
# .config.result
)).config.result