diff --git a/systems/muninn/default.nix b/systems/muninn/default.nix index e9d6b90..44e51d2 100644 --- a/systems/muninn/default.nix +++ b/systems/muninn/default.nix @@ -36,8 +36,7 @@ services = { getty = { - loginProgram = ./gs.sh; - # loginOptions = "${pkgs.steam}/bin/steam -bigpicture"; + loginProgram = ./gamescope.sh; autologinUser = "gaming"; }; diff --git a/systems/muninn/gamescope.sh b/systems/muninn/gamescope.sh new file mode 100755 index 0000000..10349cd --- /dev/null +++ b/systems/muninn/gamescope.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -xeuo pipefail + +gamescopeArgs=( + --adaptive-sync # VRR support + --hdr-enabled + --rt + --steam +) + +steamArgs=( + -pipewire-dmabuf + -tenfoot +) + +exec gamescope "${gamescopeArgs[@]}" -- steam "${steamArgs[@]}" diff --git a/systems/muninn/gs.sh b/systems/muninn/gs.sh deleted file mode 100644 index 63d9766..0000000 --- a/systems/muninn/gs.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -xeuo pipefail - -exec gamescope --adaptive-sync --hdr-enabled --rt --steam -- steam -pipewire-dmabuf -tenfoot \ No newline at end of file