refactor(nixGL): extract 'nixGL' wrapper

This commit is contained in:
hektor committed 2026-03-11 21:25:32 +01:00
1 parent 2c36290054
commit b3247589e0
7 files changed
+35 -18

No files matched your search

+12 -1
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 = {