hosts/ni/networking/setup: update module

This commit is contained in:
Gabriel Arazas 2024-07-31 13:08:47 +08:00
parent dea3b55aed
commit 16dd14e451
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -30,7 +30,14 @@ in
risk. risk.
::: :::
''; '';
default = "networkmanager"; default =
if config.networking.useNetworkd
then "networkd"
else "networkmanager";
defaultText = ''
When networkd is enabled, `networkd`, otherwise `networkmanager` as the
general fallback value.
'';
example = "networkd"; example = "networkd";
}; };
}; };
@ -155,10 +162,12 @@ in
state.ports = { state.ports = {
http = { http = {
value = 80; value = 80;
protocols = [ "tcp" ];
openFirewall = true; openFirewall = true;
}; };
https = { https = {
value = 443; value = 443;
protocols = [ "tcp" ];
openFirewall = true; openFirewall = true;
}; };
}; };