clan: Remove unecessary templates and modules interface
This commit is contained in:
@@ -48,6 +48,5 @@ eval {
|
|||||||
rest
|
rest
|
||||||
# implementation
|
# implementation
|
||||||
./module.nix
|
./module.nix
|
||||||
./auto-imports.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
meta = lib.mkOption {
|
meta = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./auto-imports.nix
|
||||||
(lib.mkRenamedOptionModule [ "directory" ] [ "self" ])
|
(lib.mkRenamedOptionModule [ "directory" ] [ "self" ])
|
||||||
# Merge the inventory file
|
# Merge the inventory 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.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user