From f93b2c6908168cd244b6dbd7f78cefea6bd39640 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 3 Sep 2023 21:56:37 -0600 Subject: [PATCH] Steam login option --- flake.nix | 2 +- machines/zoidberg/default.nix | 13 +++++-------- patches/gamepadui.patch | 13 +++++++++++++ 3 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 patches/gamepadui.patch diff --git a/flake.nix b/flake.nix index b7b9011..9c111d5 100644 --- a/flake.nix +++ b/flake.nix @@ -75,7 +75,7 @@ name = "nixpkgs-patched"; src = nixpkgs; patches = [ - # no patches to nixpkgs at this time + ./patches/gamepadui.patch ]; }; patchedNixpkgs = nixpkgs.lib.fix (self: (import "${patchedNixpkgsSrc}/flake.nix").outputs { self = nixpkgs; }); diff --git a/machines/zoidberg/default.nix b/machines/zoidberg/default.nix index bcbebdb..f9dfcf6 100644 --- a/machines/zoidberg/default.nix +++ b/machines/zoidberg/default.nix @@ -5,16 +5,13 @@ ./hardware-configuration.nix ]; - # services.spotifyd.enable = true; - - # wireless xbox controller support - hardware.xpadneo.enable = true; - - services.mount-samba.enable = true; - de.enable = true; - # kodi + # Login DE Option: Steam + programs.steam.gamescopeSession.enable = true; + # programs.gamescope.capSysNice = true; + + # Login DE Option: Kodi services.xserver.desktopManager.kodi.enable = true; services.xserver.desktopManager.kodi.package = ( diff --git a/patches/gamepadui.patch b/patches/gamepadui.patch new file mode 100644 index 0000000..66917ed --- /dev/null +++ b/patches/gamepadui.patch @@ -0,0 +1,13 @@ +diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix +index 29c449c16946..f6c728eb7f0c 100644 +--- a/nixos/modules/programs/steam.nix ++++ b/nixos/modules/programs/steam.nix +@@ -11,7 +11,7 @@ let + in + pkgs.writeShellScriptBin "steam-gamescope" '' + ${builtins.concatStringsSep "\n" exports} +- gamescope --steam ${toString cfg.gamescopeSession.args} -- steam -tenfoot -pipewire-dmabuf ++ gamescope --steam ${toString cfg.gamescopeSession.args} -- steam -gamepadui -steamdeck -pipewire-dmabuf &> /tmp/steamlog + ''; + + gamescopeSessionFile =