From a3576e284b12bb0cc3080078a528506ec59ac413 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 15 Jan 2023 22:48:29 +0100 Subject: use systemd-networkd --- common.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'common.nix') diff --git a/common.nix b/common.nix index 3fad042..ab37b13 100644 --- a/common.nix +++ b/common.nix @@ -90,10 +90,15 @@ in ]; }; - # - # we let the FRITZ!Box do the job - # - networking.useDHCP = true; + # allow all firmware + hardware.enableAllFirmware = true; + + # use systemd-networkd + networking.useDHCP = false; + networking.useNetworkd = true; + + # ensure firewall is up + networking.firewall.enable = true; # swap to RAM zramSwap.enable = true; @@ -268,11 +273,6 @@ in services.avahi.enable = true; services.avahi.nssmdns = true; - # ensure firewall is up - networking.firewall = { - enable = true; - }; - # let's get SSD status services.smartd.enable = true; -- cgit v1.2.3