nixos-config/config/services/hostapd.nix

25 lines
481 B
Nix
Raw Normal View History

2022-04-24 20:20:17 +00:00
{ config, ... }: {
imports = [
../../modules/hostapd.nix
];
services.hostapd = {
2022-04-24 21:01:17 +00:00
enable = true;
2022-04-24 20:20:17 +00:00
countryCode = "DE";
interface = "wlp6s0";
2022-05-07 14:44:57 +00:00
ssid = "🦝";
2022-04-24 20:20:17 +00:00
wpa = true;
wpaPassphraseFile = config.sops.secrets."services/hostapd".path;
2022-05-07 14:37:07 +00:00
extraConfig = ''
2022-05-07 14:44:57 +00:00
utf8_ssid=1
2022-05-07 14:37:07 +00:00
wmm_enabled=1
ieee80211n=1
2022-05-07 14:44:57 +00:00
wpa_pairwise=GCMP CCMP
2022-05-07 14:37:07 +00:00
'';
2022-04-24 20:20:17 +00:00
};
sops.secrets."services/hostapd" = {
restartUnits = [
"hostapd.service"
];
};
}