flake/nixos/profiles/wireless/default.nix

22 lines
377 B
Nix
Raw Normal View History

{ 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"
]
);
2024-07-09 23:12:02 +00:00
2024-08-30 20:14:38 +00:00
networking.wireless.iwd.enable = true;
2024-07-09 23:12:02 +00:00
}