Added a parameter for gaming systems

This commit is contained in:
2025-05-06 08:17:16 +02:00
parent ede5b23ce3
commit 5dd1dbe196
3 changed files with 16 additions and 13 deletions

View File

@@ -43,6 +43,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
user = "r3ddy"; user = "r3ddy";
email = personalEmail; email = personalEmail;
gamingSystem = true;
}; };
}; };
} }

View File

@@ -11,6 +11,7 @@ name:
email, email,
wsl ? false, wsl ? false,
stable ? false, stable ? false,
gamingSystem ? false
}: }:
let let
# True if this is a WSL system. # True if this is a WSL system.
@@ -61,6 +62,7 @@ let
currentSystemName = name; currentSystemName = name;
currentSystemUser = user; currentSystemUser = user;
currentSystemEmail = email; currentSystemEmail = email;
gamingSystem = gamingSystem;
isWSL = isWSL; isWSL = isWSL;
isDarwin = isDarwin; isDarwin = isDarwin;
inputs = inputs; inputs = inputs;

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, gamingSystem, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# CLI utils # CLI utils
@@ -38,28 +38,28 @@
# Video card # Video card
vulkan-tools vulkan-tools
# Gaming
dolphin-emu
heroic
mangohud
prismlauncher
steam
vesktop
# GUI applications # GUI applications
baobab baobab
brave brave
kdePackages.xdg-desktop-portal-kde kdePackages.xdg-desktop-portal-kde
kitty kitty
libresprite
mpv mpv
nextcloud-client nextcloud-client
spotube spotube
telegram-desktop telegram-desktop
];
programs.steam = { ] ++ (if gamingSystem then [
libresprite
dolphin-emu
heroic
mangohud
prismlauncher
steam
vesktop
] else []);
programs.steam = if gamingSystem then {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
}; } else {};
} }