summaryrefslogtreecommitdiff
path: root/components/programs/games.nix
diff options
context:
space:
mode:
Diffstat (limited to 'components/programs/games.nix')
-rw-r--r--components/programs/games.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/components/programs/games.nix b/components/programs/games.nix
new file mode 100644
index 0000000..560e210
--- /dev/null
+++ b/components/programs/games.nix
@@ -0,0 +1,16 @@
+{lib, config, pkgs, ...}: {
+ options.games.enable = lib.mkEnableOption "Games";
+
+ config = lib.mkIf config.games.enable {
+ hardware.steam-hardware.enable = true;
+
+ #Steam
+ programs = {
+ gamemode.enable = true;
+ steam.enable = true;
+ };
+
+ # Packages
+ environment.systemPackages = with pkgs; [ prismlauncher heroic ];
+ };
+}