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:
@@ -11,10 +11,8 @@
|
|||||||
{
|
{
|
||||||
name = "data-mesher";
|
name = "data-mesher";
|
||||||
|
|
||||||
clanSettings = {
|
|
||||||
self = ./.;
|
|
||||||
};
|
|
||||||
clan = {
|
clan = {
|
||||||
|
directory = ./.;
|
||||||
inventory = {
|
inventory = {
|
||||||
machines = lib.genAttrs machines (_: { });
|
machines = lib.genAttrs machines (_: { });
|
||||||
services = {
|
services = {
|
||||||
|
|||||||
@@ -7,10 +7,8 @@
|
|||||||
# - clan.service modules
|
# - clan.service modules
|
||||||
name = "dummy-inventory-test";
|
name = "dummy-inventory-test";
|
||||||
|
|
||||||
clanSettings = {
|
|
||||||
self = ./.;
|
|
||||||
};
|
|
||||||
clan = {
|
clan = {
|
||||||
|
directory = ./.;
|
||||||
inventory = {
|
inventory = {
|
||||||
machines.peer1 = { };
|
machines.peer1 = { };
|
||||||
machines.admin1 = { };
|
machines.admin1 = { };
|
||||||
|
|||||||
@@ -23,13 +23,6 @@ in
|
|||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
clan-core = mkOption { default = self; };
|
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; };
|
nixpkgs = mkOption { default = self.inputs.nixpkgs; };
|
||||||
nix-darwin = mkOption { default = self.inputs.nix-darwin; };
|
nix-darwin = mkOption { default = self.inputs.nix-darwin; };
|
||||||
};
|
};
|
||||||
@@ -42,7 +35,6 @@ in
|
|||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit (config.clanSettings)
|
inherit (config.clanSettings)
|
||||||
clan-core
|
clan-core
|
||||||
self
|
|
||||||
nixpkgs
|
nixpkgs
|
||||||
nix-darwin
|
nix-darwin
|
||||||
;
|
;
|
||||||
@@ -94,5 +86,4 @@ in
|
|||||||
node.specialArgs.self = self;
|
node.specialArgs.self = self;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
))
|
)).config.result
|
||||||
# .config.result
|
|
||||||
|
|||||||
Reference in New Issue
Block a user