Skip to content

Commit

Permalink
fix: wireless now requires secretsFile and pskRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Sep 21, 2024
1 parent 12d085d commit 9273a8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions hosts/common/options/wireless.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ in
"1.0.0.1"
];

sops.secrets."wireless.env" = {
sops.secrets."wireless.conf" = {
mode = "0644";
};

networking.wireless = {
enable = true;
# Declarative
environmentFile = config.sops.secrets."wireless.env".path;
secretsFile = config.sops.secrets."wireless.conf".path;
networks = {
"UPC7335283".psk = "@PSK_UPC7335283@";
"UPC8795410".psk = "@PSK_UPC8795410@";
"MALIK_E_DOM".psk = "@PSK_MALIK_E_DOM";
"TP-LINK_FD1F".psk = "@PSK_TP_LINK_FD1F";
"Konrad's iPhone".psk = "@PSK_KONRADS_IPHONE";
"UPC7335283".pskRaw = "ext:psk_UPC7335283";
"UPC8795410".pskRaw = "ext:psk_UPC8795410";
"MALIK_E_DOM".pskRaw = "ext:psk_MALIK_E_DOM";
"TP-LINK_FD1F".pskRaw = "ext:psk_TP_LINK_FD1F";
"Konrad's iPhone".pskRaw = "ext:psk_KONRADS_IPHONE";
};
# Imperative
allowAuxiliaryImperativeNetworks = true;
Expand Down
8 changes: 4 additions & 4 deletions hosts/common/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wireless.env: ENC[AES256_GCM,data:5cGEaF29w6UGXWTaEdHobL/CFC5dLuCyp+HTlXGlyT3BODNjI/8agKxhdjUGybEBS0jG7K55qPxhkTyTvQLN2E4gkS+QKMRxU1Ay64ZL0moNNIH9JyUOEgb5fY6Zzba7mzKeQ2ScX1nNLSfLGAxuLmTHwvtNENnzPWKiIxkb7pkMZKJqM9Lh28ANg4Sv6diGv3ffEw==,iv:cXvQDfUW9KkWPpDitmBadKvQDYOcna0L6YUXU+CsWSM=,tag:bU3UIorSYI1DYSOzE6rUYA==,type:str]
wireless.conf: ENC[AES256_GCM,data:3OTFobVG85nRRuvxhJxyhqGAJRfDFfCwYI850BPvgBlakIWXlwIFq3JSzI8czYkbFMOk+g68jMrIv6XJYDEi/M5nOJyL89tjXFnNBpi1TiCm21JnRsItB8/I2GEj4mJszWVhau0DF0V8VC2J5cMOx9KHmTtNT8cNvznvSSnwZ10zruSnytBij03BrHOCKSt7SmxAug==,iv:4OjI6akv0WN3KN+pVJOCAOL+y9/k716ZZhLkJnvNoDg=,tag:9eAvDeCoETEU5qPXmqg/TA==,type:str]
#ENC[AES256_GCM,data:WcUK1k5O+TjuA0suEbd0DFzUh61rs5I=,iv:2901qgd8yIUolEY6LzlRo4W5wIJeXjSF8Gsz02/Dqu8=,tag:BsWfaKE6yV2YcHpvGnU0mA==,type:comment]
tailscale-auth-key: ENC[AES256_GCM,data:vrCcfsT2ezv9pMPQno8pzZRDBwwPMglR35UEMbiT00ZAGGryAeq9yIZ3IfKbyWf13MxNAvZU2TZ4,iv:gDrnh12HmYptzAaUBedHD7yzzxJapZVitFY1qNYc6nQ=,tag:/0CdPitAm4+wGl6VbwMLoQ==,type:str]
sops:
Expand Down Expand Up @@ -79,8 +79,8 @@ sops:
S01xMm1OeGg1UXVZR1dsQWJ4SjhKTzQKY5X7RoiA594SeN7dlqfor2bKdtZOZ7vj
8qEr9y89UYr34eoKxwtgQNRMH0fW9UeGY3639Itn8B+ICoDFYtDZGw==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-05-14T14:42:28Z"
mac: ENC[AES256_GCM,data:s+KoVXrbU4CrQ91fQOnU8zIkdULEfyrJn6ZsN5gcC8cxIc+/F+MeZk15WxXm8iGb/IphYu+v7OkdCP4QNprPHJWYsfMoLcgKDyVJz7BwClE+yWNxaLL3dJdElpWOMoMKoYza7OPT/iZpRX9zRQl2cicwqv7h3yn/YFfA4uWuHg0=,iv:iF1TYilzY56wx0fHkiHI8D1CAOE73J1sVN11kO/6F5c=,tag:wSw+gFPxOm7YZFAdwBiJXw==,type:str]
lastmodified: "2024-09-21T12:52:56Z"
mac: ENC[AES256_GCM,data:Zlg3sO+9EZrKPpBrUOjaqDhVXx5xRaT09q66e5QEy6HlNS3rJWbqNXoNp1p83ZnU/N3z/PsyHaHcVrQdpttDD3PiSsjLRxIZo6TKyiWbmp/bm+ghGtKS+UJOrczrP4qn32n1gZuTowcwWWoCv3vTHPkJApBTWCp8Tqh7q4ZIX7c=,iv:K992XsZ//8k425mQhbQwRMAqdrybcKVlHXcZUlcpyTI=,tag:uWMuc1pFOI2SC3GxqKFt6Q==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
version: 3.9.0

0 comments on commit 9273a8d

Please sign in to comment.