{lib}: { # set of options we want to copy from a system # config to home manager mkConfig = config: { inherit (config) # System Information hostName timeZone stateVersion # System Modules battery bluetooth fingerprint network tpm nvidia minimal # Primary User user fullName email homePath dotfilesPath # Monitors monitors # Theme theme # Programs apps browsers desktops gaming development virt autoRun # Packages extraPackages ; # fix xdg xdg.portal = { inherit (config.xdg.portal) enable xdgOpenUsePortal extraPortals config ; }; # bring over nix options nix = lib.mkForce { inherit (config.nix) buildMachines checkConfig distributedBuilds gc package registry settings ; }; } // config.extraHome; }