From 38e29dec5f2e2c5c5f7e9cef2fbe4a3ae4ce0ff4 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 25 Sep 2024 19:10:27 +0000 Subject: [PATCH] Switch to hand-crafted steam autostart Using the actual steam.desktop starts up the default steam mode, not big picture, which is what I want. I pulled this content from the steam.desktop file, so it may need to get adjusted in the far future. --- eshu/etc/nixos/configuration.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/eshu/etc/nixos/configuration.nix b/eshu/etc/nixos/configuration.nix index 4abe732..dafaf93 100644 --- a/eshu/etc/nixos/configuration.nix +++ b/eshu/etc/nixos/configuration.nix @@ -23,7 +23,20 @@ home-manager.useGlobalPkgs = true; home-manager.users.eliribble = { pkgs, ... }: { - home.file.".config/autostart/steam.desktop".source = "${pkgs.steam}/share/applications/steam.desktop"; + home.file.".config/autostart/steam.desktop".text = '' + [Desktop Entry] + Name=Steam + Comment=Application for managing and playing games on Steam + Exec=steam %U -bigpicture + Icon=steam + Terminal=false + Type=Application + Categories=Network;FileTransfer;Game; + MimeType=x-scheme-handler/steam;x-scheme-handler/steamlink; + Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends; + PrefersNonDefaultGPU=true + X-KDE-RunOnDiscreteGpu=true + ''; # home.packages = [ pkgs.httpie ]; programs.fish.enable = true;