Skip to content

Commit

Permalink
modules/steam: Add option to use the Jovian NixOS logo at launch
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldr committed Nov 1, 2024
1 parent da70b6f commit 3d1cdb7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/steam/updater.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ in
splash = mkOption {
type = types.enum [
"steamos"
"jovian"
"vendor"
];
default = "steamos";
Expand All @@ -25,6 +26,8 @@ in
When `steamos`, this will use the vendor-selected image, scaled appropriately.
When `jovian`, this will use the Jovian Experiments logo, scaled appropriately.
When `vendor`, the vendor default will not be changed. This differs from `default` in that
on systems other than the Steam Deck, the scaling may not be correct.
Expand All @@ -39,7 +42,12 @@ in
{
environment.etc."xdg/gamescope-session/environment" = {
text = lib.mkAfter ''
jovian_updater_logo="$ui_background"
${optionalString (cfg.updater.splash == "steamos") ''
jovian_updater_logo="$ui_background"
''}
${optionalString (cfg.updater.splash == "jovian") ''
jovian_updater_logo="${../../artwork/logo/splash.png}"
''}
${pkgs.jovian-updater-logo-helper}/bin/jovian-updater-logo-helper "$jovian_updater_logo"
Expand Down

0 comments on commit 3d1cdb7

Please sign in to comment.