{ povSelf, inputs, pkgs, lib, config, hostConfig, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options = { enable = { type = types.bool; default = false; }; username.type = types.str; envFile.type = types.path; }; config = lib.mkIf cfg.enable { sops.secrets."environments/networkManagerProfiles/zaphyraHome" = { sopsFile = inputs.self.sopsSecrets.common; }; networking.networkmanager.ensureProfiles = { environmentFiles = [ config.sops.secrets."environments/networkManagerProfiles/zaphyraHome".path ]; profiles."zaphyraHome" = { connection = { id = "zaphyraHome"; type = "wifi"; uuid = "2eb10476-ea80-4059-afdc-8d2ce844236b"; }; ipv4 = { method = "auto"; }; ipv6 = { addr-gen-mode = "default"; method = "auto"; }; proxy = { }; wifi = { mode = "infrastructure"; ssid = "$ZAPHYRA_HOME_SSID"; }; wifi-security = { key-mgmt = "sae"; psk = "$ZAPHYRA_HOME_PASS"; }; }; }; }; }