{ 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/grogHome" = { sopsFile = inputs.self.sopsSecrets.common; }; networking.networkmanager.ensureProfiles = { environmentFiles = [ config.sops.secrets."environments/networkManagerProfiles/grogHome".path ]; profiles."grogHome" = { connection = { id = "grogHome"; type = "wifi"; uuid = "1bbc0cce-148f-4afa-876e-fa6db67d884e"; }; ipv4 = { method = "auto"; }; ipv6 = { addr-gen-mode = "default"; method = "auto"; }; proxy = { }; wifi = { mode = "infrastructure"; ssid = "$GROG_HOME_SSID"; }; wifi-security = { key-mgmt = "wpa-psk"; psk = "$GROG_HOME_PASS"; }; }; }; }; }