{ dotsPath, pkgs, ... }: let spotifyWithWayland = pkgs.symlinkJoin { name = "spotify"; paths = [ pkgs.spotify ]; buildInputs = [ pkgs.makeWrapper ]; postBuild = '' wrapProgram $out/bin/spotify \ --add-flags "--enable-features=UseOzonePlatform --ozone-platform=wayland" ''; }; in { home.packages = with pkgs; [ ncspot spotifyWithWayland ]; home.file = { ".config/ncspot/config.toml".source = dotsPath + "/.config/ncspot/config.toml"; }; }