nix/nixos/common/modules/wireless.nix

21 lines
432 B
Nix
Raw Normal View History

2023-09-15 14:29:33 +02:00
{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;
2023-09-15 15:51:52 +02:00
psk = "$copeland-5g-psk";
2023-09-15 14:29:33 +02:00
};
};
};
};
}