{ povSelf, inputs, pkgs, lib, config, hostConfig, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options.enable = { type = types.bool; default = false; }; config = lib.mkIf cfg.enable { sops.secrets."environments/networkManagerProfiles/zaphyraPhone" = { sopsFile = inputs.self.sopsSecrets.common; }; networking.networkmanager.ensureProfiles = { environmentFiles = [ config.sops.secrets."environments/networkManagerProfiles/zaphyraPhone".path ]; profiles."zaphyraPhone" = { connection = { id = "zaphyraPhone"; type = "wifi"; uuid = "2dc7bb4a-e016-427d-aeb6-28e7a6b91f41"; }; ipv4 = { method = "auto"; }; ipv6 = { addr-gen-mode = "default"; method = "auto"; }; proxy = { }; wifi = { mode = "infrastructure"; ssid = "$ZAPHYRA_PHONE_SSID"; }; wifi-security = { auth-alg = "open"; key-mgmt = "wpa-psk"; psk = "$ZAPHYRA_PHONE_PASS"; }; }; }; }; }