blob: b82633dac8dba99eae174cfdfc595f418958bdfd (
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
|
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkOption types mkIf;
in {
options = {
cynerd.wifiClient = mkOption {
type = types.bool;
default = false;
description = "Enable Wi-Fi client support";
};
};
config = mkIf config.cynerd.wifiClient {
environment.systemPackages = with pkgs; [
wpa_supplicant_gui
];
networking.wireless = {
enable = true;
networks = config.secrets.wifiNetworks;
secretsFile = "/run/secrets/wifi.secrets";
userControlled.enable = true;
};
};
}
|