added launch.nix

This commit is contained in:
kenji
2025-07-17 15:04:47 -05:00
parent 88b4ff68a6
commit f6156cad67
2 changed files with 26 additions and 0 deletions
+7
View File
@@ -1,4 +1,8 @@
{
lib,
myConfig,
...
}: {
imports =
[
../../packages/hyprland/default.nix
@@ -8,5 +12,8 @@
++ [
../../packages/steam/default.nix
../../packages/bottles/default.nix
]
++ lib.optionals (myConfig.nixos.Gaming.enable == true) [
../../packages/steam/launch.nix
];
}
+19
View File
@@ -0,0 +1,19 @@
{pkgs, ...}: {
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
gamescopeSession.enable = true;
};
};
hardware.xone.enable = true;
environment = {
systemPackages = pkgs.mangohud;
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ./gs.sh
'';
};
}