This commit is contained in:
2025-08-04 17:12:35 +03:00
parent 6a3b5c2c92
commit 86732e91df
3 changed files with 48 additions and 14 deletions
+21 -14
View File
@@ -16,7 +16,7 @@
# defines global user
config.users = {
users = {
"${inputs.zeroq.devices.admin}" = {
"${config.device.username}" = {
isNormalUser = true;
description = "Jor Oqyude";
initialPassword = "1234";
@@ -37,17 +37,24 @@
};
# Options
options = {
device.type = lib.mkOption {
type = lib.types.enum [
"minimal"
"primary"
"server"
"vds"
"wsl"
];
default = "minimal"; # Значение по умолчанию, если не указано
description = "Type of device for this host.";
};
};
# options = {
# device = {
# type = lib.mkOption {
# type = lib.types.enum [
# "minimal"
# "primary"
# "server"
# "vds"
# "wsl"
# ];
# default = "minimal";
# description = "Type of device for this host.";
# };
# username = lib.mkOption {
# type = lib.types.str;
# default = "${inputs.zeroq.devices.admin}";
# description = "Username for host";
# };
# };
# };
}
+1
View File
@@ -4,6 +4,7 @@
}:
{
imports = [
./options.nix
./packages.nix
./services.nix
./settings.nix
+26
View File
@@ -0,0 +1,26 @@
{
config,
...
}:
{
options = {
device = {
type = lib.mkOption {
type = lib.types.enum [
"minimal"
"primary"
"server"
"vds"
"wsl"
];
default = "minimal";
description = "Type of device for this host.";
};
username = lib.mkOption {
type = lib.types.str;
default = "${inputs.zeroq.devices.admin}";
description = "Username for host";
};
};
};
}