summary refs log tree commit diff stats
path: root/sys/networking/default.nix
blob: 3067fb6472a96b1b7f93d8ceac5faf7c85c3fb72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{config, ...}: {
  networking = {
    useDHCP = true;
    #nameservers = ["2620:fe::fe" "2620:fe::9" "9.9.9.9" "149.112.112.112"];
    wireless = {
      enable = true;
      environmentFile = config.age.secrets.wireless.path;
      networks = {
        # Important: Never forget the second '@'!
        "@SSID_N0@".psk = "@PSK_N0@";
        "@SSID_N1@".psk = "@PSK_N1@";
        "@SSID_N2@".psk = "@PSK_N2@";
      };
      userControlled = {
        enable = true;
        group = "wheel"; # TODO: Change this?
      };
    };
  };
}