{ config, lib, pkgs, ... }: let cfg = config.profiles.multimedia; in { 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; [ spotify playerctl ]; # services.spotifyd = { # enable = true; # # package = (pkgs.spotifyd.override { withMpris = true; }); # # settings = { # global = { # username = "9nko3f7puya1e5bbo9c5ifddy"; # password_cmd = "${pkgs.pass}/bin/pass www/spotify.com | head -n1"; # }; # }; # }; # # programs.spotify-tui = { # enable = true; # # settings = { # theme = { # active = "Cyan"; # banner = "LightCyan"; # }; # # behavior = { # seek_milliseconds = 5000; # volume_increment = 10; # }; # }; # }; nixpkgs.allowedUnfree = [ "spotify" "spotify-unwrapped" ]; }; }