{ 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/voidHome" = { sopsFile = inputs.self.sopsSecrets.common; }; networking.networkmanager.ensureProfiles = { environmentFiles = [ config.sops.secrets."environments/networkManagerProfiles/voidHome".path ]; profiles."voidHome" = { connection = { id = "voidHome"; type = "wifi"; uuid = "42e9526b-f810-49f5-8438-0e14a72485dc"; }; ipv4 = { method = "auto"; }; ipv6 = { addr-gen-mode = "default"; method = "auto"; }; proxy = { }; wifi = { mode = "infrastructure"; ssid = "$VOID_HOME_SSID"; }; wifi-security = { auth-alg = "open"; key-mgmt = "wpa-psk"; psk = "$VOID_HOME_PASS"; }; }; }; }; }