summaryrefslogtreecommitdiff
path: root/system-profiles/networkmanager.nix
blob: 878a12c4dd8954f2e028d93488920c758552e4dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, ... }:

with lib;

{
  config = {
    networking = {
      networkmanager = {
        enable = true;
        dhcp = "internal";
        dns = mkForce "dnsmasq";
        extraConfig = ''
          [connectivity]
          uri=https://online.yggdrasil.li
        '';
      };

      dhcpcd.enable = false;
    };

    systemd.services."NetworkManager-wait-online".enable = false;
    systemd.services."systemd-networkd-wait-online".enable = false;

    services.resolved.enable = false;

    environment.noXlibs = false;
  };
}