nixos/wireless: add school wifi & mobile hotspot

This commit is contained in:
Guanran Wang 2024-09-21 01:42:07 +08:00
parent b2638a2885
commit 4b8df9fa2b
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
2 changed files with 20 additions and 6 deletions

View file

@ -1,9 +1,21 @@
{ 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";
};
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;
}

View file

@ -1,6 +1,8 @@
wireless:
wangxiaobo: ENC[AES256_GCM,data:D9m+JRZ2Tw1a4mukW+WU3QLYIRiTiRkGz1ddD7zvkctbuYg+BZXtRgDR0FOIn586t0DsgA1wBDEN/WWiLRTrArgWTHiv7OsOa1NI7+BuL1cFb1TNbk04zbtc6cCOpDBH8qivx0jdZIqrJ5JzIaeZ9T78tj1jMmp3pyt3RiEcZLqxjnPiJhJVaZ8iUNDTvuX3DpsmqybYiLO+Hz7qvIHwM1euc/vyraZ2SR/y5DjTjwVK1jiAs3glPy2oYayVhv+RPs/AHVDnslbtPxGrPhRXxZT3t9LnBw+I0VgrdKUl39ym38PurGnVoBJ7EUVWl3SUPQjnDfQI/XQiDyI3DZ8uA5MGwlR9mny5N/ojs+q7J/k4YiSThCasA5tA24SNRZQWI9lFevoortU+is9FTTGkfzgrrcuURDs6E3ShbbHgn4tvHPhB87J1mP9D7UMIFFfVyvqp5fRgBMHcrEA8xln2xvvQdRDDj/JJYIj3ex8PpTqvAi1EwnAFWhBgqIchcHRFcfQRWOsR7h8M1UQpnge85UZfePMropq5zJ3TSF4AKa2A4U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cUCeI9IxFPHhVvP2IA89Jxaj/Z4+vzqGbQ5r1NjG9nLde2BGpK1MeP+3kCZvLMOeuZclmu66t28,iv:RdLGNZAVWOfCfmAOoJ/S3EosHL9VzDDU9HKlFafW2eg=,tag:iYL8DovtLkic/XFBD5fnjQ==,type:str]
sops:
kms: []
gcp_kms: []
@ -25,8 +27,8 @@ sops:
anlOQ09Eb2lFc05kY3dGNUNwRWVIYzQKVDQK6DwJHr0ujog+LC/usF4jQIN0WxIj
Eqm+ooHFDbOtNmzt4s7iVq0Ml8moUlmWM/VNSCKuaIY+kse4H3Xp+w==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-07-10T08:37:51Z"
mac: ENC[AES256_GCM,data:M892yzbmOSiDdifD1kRreBR/+JwMneIZjvCXC90osBogFEmUtf9W6M3xeYmbTobgE/chy9O9yn6CVDt9OucU+sT7o2oUpbOHVulJnwstBuUJGQAEwhyolQP5YRiGRxQzdPG6dqLUkKlsi44pm4dNtDLHFPE0j1wA0PD1fhrH4Y0=,iv:P+ne5UD5F62NW0xYndCDEzR0e7qo0COwDY0iNb2bKUo=,tag:uZfOsrZuSMYdY2zqFhqiyw==,type:str]
lastmodified: "2024-09-20T17:30:39Z"
mac: ENC[AES256_GCM,data:yyJOLqCF+ZRLFda/E3gCgAv0wB9LbVb4RtBW3IV3+5b0N/1BJxRzzOompfD/JlnTcQz9CA/NPSb2rBt92a3MRdYeoAPv6Gl3Nr23/DJtDYIbz/x+JT/GqrAdso64iPmaQFfhA2QXJbPfGqDy0W3fyYuQViWPV3eE7BXE3TtuHr4=,iv:t8/jVOW2gI7lQf9lqGZHSp+tLSBzNxQMfVXJrrTcmPo=,tag:c9yUOKLK8DGfHDfwW3s22w==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.0