config cleanups

This commit is contained in:
2026-03-27 13:29:45 -05:00
parent 9ae5c8ab6d
commit 06c1ae13df
8 changed files with 91 additions and 27 deletions

View File

@@ -46,6 +46,36 @@ in
allowedUDPPorts = mkOpt (types.listOf types.port) [ ] "List of allowed UDP ports.";
trustedInterfaces = mkOpt (types.listOf types.str) [ ] "List of trusted interfaces.";
kdeConnect = {
enable = mkBoolOpt true "Whether to configure firewall ports for KDE Connect.";
tcpRange =
mkOpt
(types.submodule {
options = {
from = mkOpt types.port 1714 "Start of TCP port range.";
to = mkOpt types.port 1764 "End of TCP port range.";
};
})
{
from = 1714;
to = 1764;
}
"KDE Connect TCP port range.";
udpRange =
mkOpt
(types.submodule {
options = {
from = mkOpt types.port 1714 "Start of UDP port range.";
to = mkOpt types.port 1764 "End of UDP port range.";
};
})
{
from = 1714;
to = 1764;
}
"KDE Connect UDP port range.";
};
};
networkmanager = {
@@ -62,6 +92,10 @@ in
type = mkOpt types.str "wifi" "type of the network.(wifi/ethernet)";
interface =
mkOpt types.str "wlan0"
"Interface for this profile (defaults to global ipv4.interface).";
autoconnect = mkBoolOpt true "autoconnect to this connection";
autoconnect-retries =
@@ -72,7 +106,9 @@ in
mkOpt types.int 0
"connection priority in range -999 to 999. The higher number means higher priority.";
psk = mkOpt types.str "$PSK" "PSK environment variable for the WiFi password.";
psk =
mkOpt types.str "$PSK"
"PSK for WiFi connection (set to \$PSK to use SOPS secret 'wifi/PSK').";
keyMgmt = mkOpt types.str "sae" "Key management type (e.g., sae, wpa-psk).";
};
@@ -80,10 +116,19 @@ in
))
{
"Joey's Jungle 6G" = {
priority = -900;
ssid = "Joey's Jungle 6G";
psk = "$PSK";
priority = 100;
};
"Joey's Jungle 5G" = {
priority = -999;
ssid = "Joey's Jungle 5G";
psk = "$PSK";
priority = 50;
};
"Joey's Jungle 2.5G" = {
ssid = "Joey's Jungle 2.5G";
psk = "$PSK";
priority = 10;
};
}
"network profiles.";
@@ -92,7 +137,7 @@ in
hostId = mkOpt types.str "" "Host ID for ZFS and other services.";
iwd = {
enable = mkBoolOpt false "Whether to enable iwd for wireless networking.";
enable = mkBoolOpt true "Whether to enable iwd for wireless networking.";
settings = mkOpt types.attrs { } "Settings for iwd.";
};