summaryrefslogtreecommitdiff
path: root/lib/home-manager/mkprofile.nix
blob: dae4d609e87a4246a048f16dc79874dc758f76ed (plain)
1
2
3
4
5
6
7
8
9
profileName: nixosConfig: homeConfig: { config, lib, ... }: let
	cfg = config._archetypes.profiles.${profileName};
in {
	options._archetypes.profiles.${profileName} = {
		enable = lib.mkEnableOption "enable (standalone) home-manager profile ${profileName} for the configured user";
	};

	config = lib.mkIf cfg.enable (lib.mkMerge [ homeConfig ]);
}