Chore: move 'machineIcon','machineDescription' into 'clan.core.settings.machine' submodule
This commit is contained in:
@@ -54,6 +54,26 @@ in
|
|||||||
"name"
|
"name"
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
(lib.mkRenamedOptionModule
|
||||||
|
[ "clan" "core" "machineDescription" ]
|
||||||
|
[
|
||||||
|
"clan"
|
||||||
|
"core"
|
||||||
|
"settings"
|
||||||
|
"machine"
|
||||||
|
"description"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
(lib.mkRenamedOptionModule
|
||||||
|
[ "clan" "core" "machineIcon" ]
|
||||||
|
[
|
||||||
|
"clan"
|
||||||
|
"core"
|
||||||
|
"settings"
|
||||||
|
"machine"
|
||||||
|
"icon"
|
||||||
|
]
|
||||||
|
)
|
||||||
];
|
];
|
||||||
options.clan.core = {
|
options.clan.core = {
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
@@ -102,6 +122,20 @@ in
|
|||||||
the name of the machine
|
the name of the machine
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
icon = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.path;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
the location of the machine icon
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
description = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.str;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
the description of the machine
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -109,20 +143,8 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
machineIcon = lib.mkOption {
|
# TODO: Move this into settings.clanPkgs ?
|
||||||
type = lib.types.nullOr lib.types.path;
|
# This could also be part of the public interface to allow users to override the internal packages
|
||||||
default = null;
|
|
||||||
description = ''
|
|
||||||
the location of the machine icon
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
machineDescription = lib.mkOption {
|
|
||||||
type = lib.types.nullOr lib.types.str;
|
|
||||||
default = null;
|
|
||||||
description = ''
|
|
||||||
the description of the machine
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
clanPkgs = lib.mkOption {
|
clanPkgs = lib.mkOption {
|
||||||
defaultText = "self.packages.${pkgs.system}";
|
defaultText = "self.packages.${pkgs.system}";
|
||||||
internal = true;
|
internal = true;
|
||||||
|
|||||||
@@ -251,9 +251,9 @@ in
|
|||||||
# for clan vm inspect
|
# for clan vm inspect
|
||||||
clan.core.vm.inspect = {
|
clan.core.vm.inspect = {
|
||||||
clan_name = config.clan.core.settings.name;
|
clan_name = config.clan.core.settings.name;
|
||||||
machine_icon = config.clan.core.machineIcon or config.clan.core.settings.icon;
|
machine_icon = config.clan.core.settings.machine.icon or config.clan.core.settings.icon;
|
||||||
machine_name = config.clan.core.settings.machine.name;
|
machine_name = config.clan.core.settings.machine.name;
|
||||||
machine_description = config.clan.core.machineDescription;
|
machine_description = config.clan.core.settings.machine.description;
|
||||||
memory_size = config.clan.virtualisation.memorySize;
|
memory_size = config.clan.virtualisation.memorySize;
|
||||||
inherit (config.clan.virtualisation) cores graphics waypipe;
|
inherit (config.clan.virtualisation) cores graphics waypipe;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user