nixos-config/config/services/hostapd.nix

19 lines
366 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;
};
sops.secrets."services/hostapd" = {
restartUnits = [
"hostapd.service"
];
};
}