summary refs log tree commit diff stats
path: root/system/settings/hardware/network-manager.nix
blob: 4fc762d5aabf25b2f678cf38a51eaf21c1c033f1 (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
29
30
31
32
33
34
{ config, pkgs, ... }:

{
  networking = {
    networkmanager = {
      enable = true;
      dns = "none";
    };
  };

  services.unbound = {
    enable = true;
    forwardAddresses = [ "127.0.0.1@5353" ];
  };
  services.stubby = {
    enable = true;
    roundRobinUpstreams = false;
    listenAddresses = [ "127.0.0.1@5353" "0::1@5353" ];
    upstreamServers = ''
      - address_data: 45.90.28.0
        tls_auth_name: "abd6e5.dns1.nextdns.io"
      - address_data: 2a07:a8c0::0
        tls_auth_name: "abd6e5.dns1.nextdns.io"
      - address_data: 45.90.30.0
        tls_auth_name: "abd6e5.dns2.nextdns.io"
      - address_data: 2a07:a8c1::0
        tls_auth_name: "abd6e5.dns2.nextdns.io"
    '';
  };
  environment.systemPackages = with pkgs; [
    networkmanagerapplet
    networkmanager_dmenu
  ];
}