{ lib, config, userName, stateVersion ? null, True, ... }: with lib; let cfg = config.module.misc.home-manager; in { options = { module.misc.home-manager = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { programs.home-manager = True; home = { username = userName; homeDirectory = "/home/${userName}"; stateVersion = stateVersion; }; }; }