{ inputs, povSelf, pkgs, lib, config, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options.enable = { type = types.bool; default = false; }; config = lib.mkIf cfg.enable ( let NIXPKGS_PATH = lib.cleanSource pkgs.path; in { home-manager = { useGlobalPkgs = true; extraSpecialArgs = { inherit (inputs.self) homeManagerModules; inputs = inputs; systemConfig = config; }; sharedModules = [ { home.sessionVariables = { NIXPKGS_PATH = NIXPKGS_PATH; NIX_PATH = "nixpkgs=${NIXPKGS_PATH}"; }; } ]; }; } ); }