base: disable dhcp globally

This commit is contained in:
Casper V. Kristensen 2024-11-28 23:14:27 +01:00
parent 2398795533
commit c304cad47c

View file

@ -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;