nixos-config/config/services/hostapd.nix

18 lines
347 B
Nix
Raw Normal View History

2022-04-24 20:20:17 +00:00
{ config, ... }: {
imports = [
../../modules/hostapd.nix
];
services.hostapd = {
countryCode = "DE";
interface = "wlp6s0";
ssid = "🦝";
wpa = true;
wpaPassphraseFile = config.sops.secrets."services/hostapd".path;
};
sops.secrets."services/hostapd" = {
restartUnits = [
"hostapd.service"
];
};
}