summary refs log tree commit diff
path: root/modules/wireless.nix
blob: 89d8b65315f175ee496504480848e999be990ee5 (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
{ config, lib, ... }:

{
  age.secrets.wireless-secrets = {
    file = ../secrets/wireless-secrets.age;
  };

  networking = {
    useDHCP = true;

    wireless = {
      enable = true;

      # force wpa_supplicant to use all wlan interfaces
      interfaces = lib.mkForce [ ];

      secretsFile = config.age.secrets.wireless-secrets.path;
      networks = {
        # yea this is my home network :3
        # (my boyfriends brother picked the name)
        "Das asoziale Netzwerk".pskRaw = "ext:psk_home";
      };
    };
  };
}