flake/nixos/profiles/wireless/default.nix

21 lines
377 B
Nix

{ lib, ... }:
{
sops.secrets = lib.listToAttrs (
lib.map
(
x:
lib.nameValuePair "wireless/${x}" {
path = "/var/lib/iwd/${x}.psk";
sopsFile = ./secrets.yaml;
}
)
[
"Galaxy S24 EC54"
"ImmortalWrt"
"XYC-SEEWO"
"wangxiaobo"
]
);
networking.wireless.iwd.enable = true;
}