{ config, lib, ... }: { imports = [ ./programs ./services ]; options.homeconfig = with lib; { host = mkOption { type = with types; nullOr str; default = null; }; name = mkOption { type = with types; nullOr str; default = null; }; graphical = mkOption { type = with types; bool; default = true; }; standalone.enable = mkOption { type = with types; bool; default = false; }; }; config = { home.username = lib.mkDefault config.homeconfig.name; home.homeDirectory = lib.mkDefault "/home/${config.home.username}"; programs.home-manager.enable = config.homeconfig.standalone.enable; }; }