flake/nixos/profiles/wireless/default.nix

9 lines
283 B
Nix

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