nixos-config/config/services/hostapd.nix

22 lines
413 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";
ssid = "🦝";
wpa = true;
wpaPassphraseFile = config.sops.secrets."services/hostapd".path;
2022-04-24 21:05:35 +00:00
extraConfig = ''
utf8_ssid=1
'';
2022-04-24 20:20:17 +00:00
};
sops.secrets."services/hostapd" = {
restartUnits = [
"hostapd.service"
];
};
}