This commit is contained in:
@@ -53,6 +53,7 @@ in
|
||||
};
|
||||
ips = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
description = "Set of IP's for all my computers.";
|
||||
default = {
|
||||
router = "192.168.100.1";
|
||||
server = "192.168.100.15";
|
||||
@@ -73,35 +74,34 @@ in
|
||||
wg-friend5 = "10.8.0.6";
|
||||
wg-friend6 = "10.8.0.7";
|
||||
};
|
||||
description = "Set of IP's for all my computers.";
|
||||
};
|
||||
subnets = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
description = "Set of subnets for WireGuard networks.";
|
||||
default = {
|
||||
wg-homelab = "10.77.0.0/24";
|
||||
wg-friends = "10.8.0.0/24";
|
||||
wg-guests = "10.9.0.0/24";
|
||||
};
|
||||
description = "Set of subnets for WireGuard networks.";
|
||||
};
|
||||
wgInterfaces = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
description = "WireGuard interface IPs for the VPS.";
|
||||
default = {
|
||||
wg-homelab = "10.77.0.1/24";
|
||||
wg-friends = "10.8.0.1/24";
|
||||
wg-guests = "10.9.0.1/24";
|
||||
};
|
||||
description = "WireGuard interface IPs for the VPS.";
|
||||
};
|
||||
interfaces = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
description = "Set of network interface names for all my computers.";
|
||||
default = {
|
||||
server = "enp0s31f6";
|
||||
miniserver = "enp2s0";
|
||||
workstation = "enp5s0";
|
||||
vps = "eth0";
|
||||
};
|
||||
description = "Set of network interface names for all my computers.";
|
||||
};
|
||||
mainServer = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
@@ -130,6 +130,7 @@ in
|
||||
};
|
||||
ports = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.port;
|
||||
description = "Common port assignments for local services and firewall rules.";
|
||||
default = {
|
||||
comfyui = 8188;
|
||||
giteaSsh = 22;
|
||||
@@ -147,7 +148,6 @@ in
|
||||
wg = 51820;
|
||||
ssh = 3456;
|
||||
};
|
||||
description = "Common port assignments for local services and firewall rules.";
|
||||
};
|
||||
email = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
@@ -168,6 +168,7 @@ in
|
||||
};
|
||||
toggleUsers = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.either lib.types.str (lib.types.listOf lib.types.str));
|
||||
description = "Map toggle categories to users. Can be a single user (string) or multiple users (list). Determines which user(s) get packages from each toggle category.";
|
||||
default = {
|
||||
apps = "jawz";
|
||||
dev = "jawz";
|
||||
@@ -176,7 +177,6 @@ in
|
||||
services = "jawz";
|
||||
stylix = "jawz";
|
||||
};
|
||||
description = "Map toggle categories to users. Can be a single user (string) or multiple users (list). Determines which user(s) get packages from each toggle category.";
|
||||
example = {
|
||||
apps = "jawz";
|
||||
dev = "bearded_dragonn";
|
||||
|
||||
Reference in New Issue
Block a user