mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
18 lines
457 B
Nix
18 lines
457 B
Nix
{ config, tf, lib, ... }: with lib;
|
|
|
|
{
|
|
kw.secrets.variables = mapListToAttrs
|
|
(field:
|
|
nameValuePair "wireless-${field}" {
|
|
path = "secrets/wifi";
|
|
inherit field;
|
|
}) [ "ssid" "password" ];
|
|
|
|
deploy.profile.hardware.wifi = true;
|
|
networking.wireless = {
|
|
enable = true;
|
|
networks.${builtins.unsafeDiscardStringsContext tf.variables.wireless-ssid.get} = {
|
|
pskRaw = tf.variables.wireless-password.get;
|
|
};
|
|
};
|
|
}
|