l: use networkd everywhere

This commit is contained in:
lassulus 2023-07-14 21:55:25 +02:00
parent 7b6a5eb60d
commit 3ecc50fb63
2 changed files with 21 additions and 0 deletions

View file

@ -12,6 +12,7 @@ with import <stockholm/lib>;
./wiregrill.nix
./tmux.nix
./tor-ssh.nix
./networkd.nix
{
users.extraUsers =
mapAttrs (_: h: { hashedPassword = h; })

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
systemd.services.systemd-networkd.stopIfChanged = false;
# Services that are only restarted might be not able to resolve when resolved is stopped before
systemd.services.systemd-resolved.stopIfChanged = false;
networking.useNetworkd = true;
systemd.network = {
enable = true;
networks.wl0 = {
matchConfig.Name = "wl0";
DHCP = "yes";
networkConfig = {
IgnoreCarrierLoss = "3s";
};
dhcpV4Config.UseDNS = true;
};
};
}