aboutsummaryrefslogtreecommitdiff
path: root/hosts/c-pc/network.nix
blob: 969b49f1b64495b98022c6bfc9d88a2abe5290b0 (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
{ ... }:

{
  networking = {
    hostName = "c-pc";
    hostId = "23ce94ff";

    useDHCP = true;

    wireless = {
      enable = true;
      
      # Import /etc/wpa_supplicant.conf networks
      allowAuxiliaryImperativeNetworks = true;
    };

    firewall = {
      enable = false;

      allowedTCPPorts = [ 8096 50000 ];
      allowedUDPPorts = [ ];
    };
  };

  environment.etc."wpa_supplicant.conf" = {
    source = "/secrets/wireless.conf";
  };
}