diff options
author | Alan Pearce | 2021-01-06 17:43:01 +0100 |
---|---|---|
committer | Alan Pearce | 2021-01-06 17:43:01 +0100 |
commit | 5c839daa8456e3c9b9451022047c6aee905108fa (patch) | |
tree | ef0fb47207db753d504cf949f1e3de332e8de5c5 | |
parent | 10d3aaa8147a50e3b0496c560596e7f98d199ed5 (diff) | |
download | nixfiles-5c839daa8456e3c9b9451022047c6aee905108fa.tar.lz nixfiles-5c839daa8456e3c9b9451022047c6aee905108fa.tar.zst nixfiles-5c839daa8456e3c9b9451022047c6aee905108fa.zip |
prefect: migrate from deprecated networking.useDHCP
-rw-r--r-- | system/prefect.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/prefect.nix b/system/prefect.nix index 912e0828..789e6c9e 100644 --- a/system/prefect.nix +++ b/system/prefect.nix @@ -65,7 +65,11 @@ host all all samenet md5 ''; }; + networking.useDHCP = false; networking.firewall.allowedTCPPorts = [ config.services.postgresql.port ]; + networking.interfaces.enp6s0 = { + useDHCP = true; + }; networking.firewall.extraCommands = '' iptables -A nixos-fw -p udp --source 172.30.44.0/24 -j nixos-fw-accept |