nix/nixos/common/modules/wireless.nix
2023-09-15 22:51:52 +09:00

21 lines
No EOL
432 B
Nix

{pkgs, config, ...}: {
# Enable wireless
# Set up the secrets file for the token:
sops.secrets.copeland-5g-psk = {
sopsFile = ../../../secrets/secrets.yaml;
};
networking = {
wireless = {
environmentFiles = [ /run/secrets/wireless-psk ];
enable = true;
networks = {
"copeland-5g" = {
hidden = false;
psk = "$copeland-5g-psk";
};
};
};
};
}