28 lines
504 B
Nix
28 lines
504 B
Nix
{
|
|
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";
|
|
};
|
|
}
|