{ config, lib, pkgs, ... }: let cfg = config.profiles.multimedia; in { imports = [ ../../modules/programs/nixpkgs ]; options.profiles.multimedia = { enable = lib.mkEnableOption "A profile that enables the system to be used for consuming multimedia contents."; }; config = lib.mkIf cfg.enable { home.packages = with pkgs; [ vlc playerctl spotify ]; nixpkgs.allowedUnfree = [ "spotify" ]; }; }