mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/ni/networking/setup: update module
This commit is contained in:
parent
dea3b55aed
commit
16dd14e451
@ -30,7 +30,14 @@ in
|
||||
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";
|
||||
};
|
||||
};
|
||||
@ -155,10 +162,12 @@ in
|
||||
state.ports = {
|
||||
http = {
|
||||
value = 80;
|
||||
protocols = [ "tcp" ];
|
||||
openFirewall = true;
|
||||
};
|
||||
https = {
|
||||
value = 443;
|
||||
protocols = [ "tcp" ];
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user