diff --git a/hosts/common/configs/user/gui/gaming/gamemode/default.nix b/hosts/common/configs/user/gui/gaming/gamemode/default.nix new file mode 100644 index 0000000..5b028ce --- /dev/null +++ b/hosts/common/configs/user/gui/gaming/gamemode/default.nix @@ -0,0 +1,5 @@ +{ user, home }: +{ ... }: +{ + programs.gamemode.enable = true; +} diff --git a/hosts/common/configs/user/gui/gaming/gamescope/default.nix b/hosts/common/configs/user/gui/gaming/gamescope/default.nix new file mode 100644 index 0000000..3994b4b --- /dev/null +++ b/hosts/common/configs/user/gui/gaming/gamescope/default.nix @@ -0,0 +1,11 @@ +{ user, home }: +{ ... }: +{ + programs.gamescope = { + enable = true; + args = [ + "--rt" + "-f" + ]; + }; +} diff --git a/hosts/common/configs/user/gui/gaming/prismlauncher/default.nix b/hosts/common/configs/user/gui/gaming/prismlauncher/default.nix new file mode 100644 index 0000000..63e9bc9 --- /dev/null +++ b/hosts/common/configs/user/gui/gaming/prismlauncher/default.nix @@ -0,0 +1,7 @@ +{ user, home }: +{ pkgs, ... }: +{ + environment.persistence."/persist/state"."${home}/.local/share/PrismLauncher" = { }; + + home-manager.users.${user}.home.packages = with pkgs; [ prismlauncher ]; +} diff --git a/hosts/common/configs/user/gui/gaming/steam/default.nix b/hosts/common/configs/user/gui/gaming/steam/default.nix index 4ab2401..5a21ad0 100644 --- a/hosts/common/configs/user/gui/gaming/steam/default.nix +++ b/hosts/common/configs/user/gui/gaming/steam/default.nix @@ -11,24 +11,12 @@ "${home}/.local/share/Steam" = { }; }; - programs = { - steam = { - enable = true; - localNetworkGameTransfers.openFirewall = true; - extest.enable = true; - protontricks.enable = true; - extraCompatPackages = with pkgs; [ proton-ge-bin ]; - }; - - gamescope = { - enable = true; - args = [ - "--rt" - "-f" - ]; - }; - - gamemode.enable = true; + programs.steam = { + enable = true; + localNetworkGameTransfers.openFirewall = true; + extest.enable = true; + protontricks.enable = true; + extraCompatPackages = with pkgs; [ proton-ge-bin ]; }; home-manager.users.${user}.systemd.user = { diff --git a/hosts/himalia/users/nick/default.nix b/hosts/himalia/users/nick/default.nix index bb50e97..c495bb6 100644 --- a/hosts/himalia/users/nick/default.nix +++ b/hosts/himalia/users/nick/default.nix @@ -62,7 +62,10 @@ in (import ../../../common/configs/user/gui/emoji { inherit user home; }) (import ../../../common/configs/user/gui/feh { inherit user home; }) (import ../../../common/configs/user/gui/firefox { inherit user home; }) + (import ../../../common/configs/user/gui/gaming/gamemode { inherit user home; }) + (import ../../../common/configs/user/gui/gaming/gamescope { inherit user home; }) (import ../../../common/configs/user/gui/gaming/steam { inherit user home; }) + (import ../../../common/configs/user/gui/gaming/prismlauncher { inherit user home; }) (import ../../../common/configs/user/gui/gtk { inherit user home; }) (import ../../../common/configs/user/gui/hyprland { inherit user home; }) (import ../../../common/configs/user/gui/hyprpicker { inherit user home; })