redefining custom networking namespace
This commit is contained in:
parent
a1eb9b74c2
commit
b5b66f1c1b
@ -23,6 +23,7 @@ in {
|
|||||||
../../apps/gaming.nix
|
../../apps/gaming.nix
|
||||||
../../graphics
|
../../graphics
|
||||||
../../pwrMgmt
|
../../pwrMgmt
|
||||||
|
../../networking/core.nix
|
||||||
../../sound/pipewire.nix
|
../../sound/pipewire.nix
|
||||||
../../sound/shairport.nix
|
../../sound/shairport.nix
|
||||||
../../virtualization/podman.nix
|
../../virtualization/podman.nix
|
||||||
@ -140,7 +141,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Core networking module (see ../../networking/core.nix)
|
# Core networking module (see ../../networking/core.nix)
|
||||||
networking = {
|
network = {
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Core networking module (see ../../networking/core.nix)
|
# Core networking module (see ../../networking/core.nix)
|
||||||
networking = {
|
network = {
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.networking;
|
cfg = config.network;
|
||||||
in {
|
in {
|
||||||
options.networking = {
|
options.network = {
|
||||||
# Firewall Configuration
|
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = lib.mkEnableOption {
|
enable = lib.mkEnableOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
@ -111,7 +110,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.firewall = {
|
network.firewall = {
|
||||||
enable = cfg.firewall.enable;
|
enable = cfg.firewall.enable;
|
||||||
|
|
||||||
allowedTCPPorts =
|
allowedTCPPorts =
|
||||||
|
Loading…
Reference in New Issue
Block a user