flake/nixos/profiles/opt-in/wireless/default.nix
2024-07-10 07:50:22 +08:00

8 lines
290 B
Nix

{lib, ...}: {
sops.secrets = builtins.mapAttrs (_name: value: value // {sopsFile = ./secrets.yaml;}) {
"wireless/wangxiaobo".path = "/var/lib/iwd/wangxiaobo.psk";
"wireless/OpenWrt".path = "/var/lib/iwd/OpenWrt.psk";
};
networking.wireless.iwd.enable = lib.mkDefault true;
}