Merge pull request 'Chore: remove unused clanImports module' (#2387) from hsjobeki/clan-core:hsjobeki-main into main

This commit is contained in:
clan-bot
2024-11-12 13:52:26 +00:00
4 changed files with 1 additions and 25 deletions

View File

@@ -3,7 +3,6 @@
imports = [ imports = [
./backups.nix ./backups.nix
./facts ./facts
./imports.nix
./inventory/interface.nix ./inventory/interface.nix
./manual.nix ./manual.nix
./meta/interface.nix ./meta/interface.nix

View File

@@ -1,15 +0,0 @@
{ lib, ... }:
{
/*
Declaring imports inside the module system does not trigger an infinite
recursion in this case because buildClan generates the imports from the
settings.json file before calling out to evalModules.
*/
options.clanImports = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = ''
A list of imported module names imported from clan-core.clanModules.<name>
The buildClan function will automatically import these modules for the current machine.
'';
};
}

View File

@@ -6,7 +6,7 @@ in
options.clanSchema = lib.mkOption { options.clanSchema = lib.mkOption {
type = lib.types.attrs; type = lib.types.attrs;
description = "The json schema for the .clan options namespace"; description = "The json schema for the .clan options namespace";
default = jsonschema.parseOptions options.clan; default = jsonschema.parseOptions options.clan { };
defaultText = lib.literalExpression "jsonschema.schemaToJSON options.clan"; defaultText = lib.literalExpression "jsonschema.schemaToJSON options.clan";
}; };
} }

View File

@@ -19,7 +19,6 @@
./nixosModules/machine1.nix ./nixosModules/machine1.nix
( (
{ {
lib,
... ...
}: }:
{ {
@@ -29,13 +28,6 @@
nixpkgs.pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; nixpkgs.pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
documentation.enable = false; documentation.enable = false;
}; };
options.clanImports = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = ''
A list of imported module names imported from clan-core.clanModules.<name>
The buildClan function will automatically import these modules for the current machine.
'';
};
} }
) )
]; ];