mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+21
-14
@@ -16,7 +16,7 @@
|
|||||||
# defines global user
|
# defines global user
|
||||||
config.users = {
|
config.users = {
|
||||||
users = {
|
users = {
|
||||||
"${inputs.zeroq.devices.admin}" = {
|
"${config.device.username}" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Jor Oqyude";
|
description = "Jor Oqyude";
|
||||||
initialPassword = "1234";
|
initialPassword = "1234";
|
||||||
@@ -37,17 +37,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
options = {
|
# options = {
|
||||||
device.type = lib.mkOption {
|
# device = {
|
||||||
type = lib.types.enum [
|
# type = lib.mkOption {
|
||||||
"minimal"
|
# type = lib.types.enum [
|
||||||
"primary"
|
# "minimal"
|
||||||
"server"
|
# "primary"
|
||||||
"vds"
|
# "server"
|
||||||
"wsl"
|
# "vds"
|
||||||
];
|
# "wsl"
|
||||||
default = "minimal"; # Значение по умолчанию, если не указано
|
# ];
|
||||||
description = "Type of device for this host.";
|
# 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";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./options.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./settings.nix
|
./settings.nix
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user