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";
user = "r3ddy";
email = personalEmail;
gamingSystem = true;
};
};
}

View File

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

View File

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