updated modules to work for cloud
This commit is contained in:
@ -1,15 +1,14 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.customNetworking;
|
||||
cfg = config.networking;
|
||||
in {
|
||||
options.customNetworking = {
|
||||
options.networking = {
|
||||
# Firewall Configuration
|
||||
firewall = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Enable system firewall";
|
||||
@ -18,49 +17,49 @@ in {
|
||||
tcpPorts = {
|
||||
# Predefined, default common service ports
|
||||
ssh = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open SSH service port (22)";
|
||||
};
|
||||
};
|
||||
web = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open common web service ports (80, 443)";
|
||||
};
|
||||
};
|
||||
smtp = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open SMTP service ports (25, 465, 587)";
|
||||
};
|
||||
};
|
||||
imap = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open IMAP service ports (143, 993)";
|
||||
};
|
||||
};
|
||||
mysql = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open MySQL service port (3306)";
|
||||
};
|
||||
};
|
||||
mssql = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open Microsoft SQL Server service port (1433)";
|
||||
};
|
||||
};
|
||||
postgres = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open Postgres service port (5432)";
|
||||
@ -75,14 +74,14 @@ in {
|
||||
|
||||
udpPorts = {
|
||||
dns = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open DNS service port (53)";
|
||||
};
|
||||
};
|
||||
ntp = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Open NTP service port (123)";
|
||||
@ -97,7 +96,7 @@ in {
|
||||
};
|
||||
|
||||
networkManager = {
|
||||
enable = lib.mkOption {
|
||||
enable = lib.mkEnableOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Enable NetworkManager for network connection management";
|
||||
|
Reference in New Issue
Block a user