games/steam: Show icon in tray

Otherwise it just shows an ugly placeholder.
This commit is contained in:
Simon Bruder 2021-10-17 17:45:29 +02:00
parent fc1e8540e4
commit 6b08a8e1f3
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -72,6 +72,13 @@ let
''${SANDBOX_COMMAND:-${pkgs.unstable.steam}/bin/steam} \
"$@"
'';
steam-sandbox-with-icons = pkgs.runCommand "steam-sandbox-with-icons" { } ''
mkdir -p $out/{bin,share}
ln -s ${pkgs.steamPackages.steam}/share/icons $out/share
ln -s ${pkgs.steamPackages.steam}/share/pixmaps $out/share
ln -s ${steam-sandbox}/bin/steam-sandbox $out/bin/steam-sandbox
'';
in
lib.mkIf cfg.enable {
home.packages = with pkgs; [ ]
@ -87,6 +94,6 @@ lib.mkIf cfg.enable {
}))
++ lib.optionals unfree.allowSoftware [
unstable.osu-lazer-sandbox
steam-sandbox
steam-sandbox-with-icons
];
}