refactor(nixGL): extract 'nixGL' wrapper

This commit is contained in:
2026-02-13 11:02:42 +01:00
parent 833d999027
commit 385fcb3ee1
7 changed files with 35 additions and 18 deletions

View File

@@ -4,10 +4,21 @@
...
}:
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
# (if config.lib ? nixGL then config.lib.nixGL.wrap spotify else spotify)
spotifyWithWayland
];
home.file = {