My Nix Configuration

[default-config] Disable *-wait-online services

Changed files
+6
modules
nixos
default-config
+6
modules/nixos/default-config/networking.nix
···
"net.ipv6.conf.all.accept_redirects" = 0;
"net.ipv6.conf.default.accept_redirects" = 0;
};
}
···
"net.ipv6.conf.all.accept_redirects" = 0;
"net.ipv6.conf.default.accept_redirects" = 0;
};
+
# Disable *-wait-online services as they block rebuilds often.
+
# https://github.com/NixOS/nixpkgs/issues/180175
+
systemd.services = {
+
NetworkManager-wait-online.enable = lib.mkForce false;
+
systemd-networkd-wait-online.enable = lib.mkForce false;
+
};
}