{ 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/voidPhone" = { sopsFile = inputs.self.sopsSecrets.common; }; networking.networkmanager.ensureProfiles = { environmentFiles = [ config.sops.secrets."environments/networkManagerProfiles/voidPhone".path ]; profiles."voidPhone" = { connection = { id = "voidPhone"; type = "wifi"; uuid = "b89f4221-788f-4354-84be-f836e4cfb8f8"; }; ipv4 = { method = "auto"; }; ipv6 = { addr-gen-mode = "default"; method = "auto"; }; proxy = { }; wifi = { mode = "infrastructure"; ssid = "$VOID_PHONE_SSID"; }; wifi-security = { auth-alg = "open"; key-mgmt = "wpa-psk"; psk = "$VOID_PHONE_PASS"; }; }; }; }; }