clan: Remove unecessary templates and modules interface

This commit is contained in:
Qubasa
2025-01-29 19:24:15 +07:00
parent 839bb17284
commit c212538ac7
7 changed files with 1 additions and 128 deletions

View File

@@ -48,6 +48,5 @@ eval {
rest
# implementation
./module.nix
./auto-imports.nix
];
}

View File

@@ -61,24 +61,6 @@ in
'';
};
modules = lib.mkOption {
type = types.attrsOf (types.submodule { imports = [ ./modules/interface.nix ]; });
default = { };
description = ''
Experimental: In the future,
this will be the main way to define Clan modules.
'';
};
templates = lib.mkOption {
type = types.submodule { imports = [ ./templates/interface.nix ]; };
default = { };
description = ''
Experimental: In the future,
this will be the main way to define Clan templates.
'';
};
# Meta
meta = lib.mkOption {
description = ''

View File

@@ -171,6 +171,7 @@ let
in
{
imports = [
./auto-imports.nix
(lib.mkRenamedOptionModule [ "directory" ] [ "self" ])
# Merge the inventory file
{

View File

@@ -1,27 +0,0 @@
{
lib,
name,
...
}:
let
types = lib.types;
in
{
# clan.modules.<module-name>
options = {
path = lib.mkOption {
type = types.path;
description = ''
Holds the path to the clan module.
'';
};
name = lib.mkOption {
type = types.str;
default = name;
description = ''
The name of the module.
'';
};
};
}

View File

@@ -1,27 +0,0 @@
{
lib,
name,
...
}:
let
types = lib.types;
in
{
# clan.templates.clan.<template-name>
options = {
path = lib.mkOption {
type = types.path;
description = ''
Holds the path to the clan template.
'';
};
name = lib.mkOption {
type = types.str;
default = name;
description = ''
The name of the template.
'';
};
};
}

View File

@@ -1,27 +0,0 @@
{
lib,
name,
...
}:
let
types = lib.types;
in
{
# clan.templates.disko.<template-name>
options = {
path = lib.mkOption {
type = types.path;
description = ''
Holds the path to the clan template.
'';
};
name = lib.mkOption {
type = types.str;
default = name;
description = ''
The name of the template.
'';
};
};
}

View File

@@ -1,28 +0,0 @@
{
lib,
...
}:
let
types = lib.types;
in
{
options = {
# clan.templates.disko
disko = lib.mkOption {
type = types.attrsOf (types.submodule { imports = [ ./disko/interface.nix ]; });
default = { };
description = ''
Holds different disko templates.
'';
};
# clan.templates.clan
clan = lib.mkOption {
type = types.attrsOf (types.submodule { imports = [ ./clan/interface.nix ]; });
default = { };
description = ''
Holds the different clan templates.
'';
};
};
}