mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
profiles/hardware/wifi: attempted fix
This commit is contained in:
parent
48459d195a
commit
e282f7e0d3
2 changed files with 7 additions and 2 deletions
5
config/profiles/gui/profile.nix
Normal file
5
config/profiles/gui/profile.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ config, meta, ... }: {
|
||||
imports = with meta; [
|
||||
services.dnscrypt-proxy
|
||||
];
|
||||
}
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
deploy.profile.hardware.wifi = true;
|
||||
networking.wireless = {
|
||||
enable = true;
|
||||
networks = mkIf (builtins.getEnv "TF_IN_AUTOMATION" != "" || tf.state.resources ? ${tf.resources.wireless-credentials.out.reference}) {
|
||||
${builtins.unsafeDiscardStringContext tf.resources.wireless-credentials.getAttr "outputs.ssid"} = {
|
||||
networks = mkIf (builtins.getEnv "TF_IN_AUTOMATION" != "" || tf.state.enable) {
|
||||
${builtins.unsafeDiscardStringContext (tf.resources.wireless-credentials.getAttr "outputs.ssid")} = {
|
||||
pskRaw = tf.resources.wireless-credentials.getAttr "outputs.psk";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue