base: disable dhcp globally
This commit is contained in:
parent
2398795533
commit
c304cad47c
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
||||||
networking.useNetworkd = true;
|
networking.useNetworkd = true;
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
|
|
||||||
|
# Never use DHCP. Servers are configured with static addresses. On desktops,
|
||||||
|
# the NixOS network-manager module disables this option too.
|
||||||
|
networking.useDHCP = false;
|
||||||
|
|
||||||
# The notion of "online" is a broken concept
|
# The notion of "online" is a broken concept
|
||||||
# https://github.com/nix-community/srvos/blob/main/nixos/common/networking.nix
|
# https://github.com/nix-community/srvos/blob/main/nixos/common/networking.nix
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
|
Loading…
Reference in a new issue