From 91cc7b69aa01bbe0f329186515cdbba58bd4dc04 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 2 Apr 2025 16:01:49 +0200 Subject: [PATCH] kasei: use systemd-networkd instead of networkmanager --- hosts/kasei/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/kasei/configuration.nix b/hosts/kasei/configuration.nix index 0ea7663..383717b 100644 --- a/hosts/kasei/configuration.nix +++ b/hosts/kasei/configuration.nix @@ -69,9 +69,19 @@ # security.pam.services.login.unixAuth = true; + systemd.network = { + enable = true; + networks."40-enp6s0" = { + gateway = [ "192.168.50.1" ]; + address = [ "192.168.50.200/24" ]; + networkConfig.IPv6AcceptRA = "no"; + DHCP = "yes"; + }; + }; + networking = { hostName = "kasei"; - networkmanager.enable = true; + useNetworkd = true; interfaces.enp6s0.useDHCP = true; firewall.enable = false; hostId = "f0660cef";