18 lines
347 B
Nix
18 lines
347 B
Nix
|
{ 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"
|
||
|
];
|
||
|
};
|
||
|
}
|