nixos-config/config/services/hostapd.nix

18 lines
366 B
Nix

{ config, ... }: {
imports = [
../../modules/hostapd.nix
];
services.hostapd = {
enable = true;
countryCode = "DE";
interface = "wlp6s0";
ssid = "🦝";
wpa = true;
wpaPassphraseFile = config.sops.secrets."services/hostapd".path;
};
sops.secrets."services/hostapd" = {
restartUnits = [
"hostapd.service"
];
};
}