refactor: compose hosts and home-manager features explicitly
This commit is contained in:
@@ -99,18 +99,6 @@ let
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
kind = lib.mkOption {
|
||||
type = lib.types.enum [
|
||||
"server"
|
||||
"workstation"
|
||||
];
|
||||
};
|
||||
|
||||
traits = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
};
|
||||
|
||||
displays = lib.mkOption {
|
||||
type = lib.types.attrsOf displayType;
|
||||
default = { };
|
||||
@@ -125,13 +113,13 @@ let
|
||||
);
|
||||
in
|
||||
{
|
||||
flake.modules.nixos."meta-host" = {
|
||||
flake.modules.nixos.meta = {
|
||||
options.meta.host = lib.mkOption {
|
||||
type = hostType;
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager."meta-context" = {
|
||||
flake.modules.homeManager.meta = {
|
||||
options.meta = {
|
||||
host = lib.mkOption {
|
||||
type = lib.types.nullOr hostType;
|
||||
|
||||
Reference in New Issue
Block a user