{ config, lib, pkgs, ... }: let cfg = config.profiles.misc; in { options.profiles.misc = { enable = lib.mkEnableOption "A profile that enables miscellaneous options and packages."; }; config = lib.mkIf cfg.enable { home.packages = with pkgs; [ spotify ]; nixpkgs.allowedUnfree = [ "spotify" "spotify-unwrapped" ]; }; }