add options from programs.steam to gaming system's config

This commit is contained in:
2025-07-13 03:05:20 +02:00
parent 9cada81de6
commit 45803f8024
3 changed files with 15 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@
system/shell.nix system/shell.nix
system/users.nix system/users.nix
system/ssh.nix system/ssh.nix
system/gaming.nix
desktop/plasma.nix desktop/plasma.nix
desktop/pulseaudio.nix desktop/pulseaudio.nix
+14
View File
@@ -0,0 +1,14 @@
{ config, lib, pkgs, modulesPath, ... }:
{
options.lumpiasty.gaming = lib.mkEnableOption "Enable options specific to gaming computers";
config = lib.mkIf config.lumpiasty.gaming {
# https://github.com/NixOS/nixpkgs/blob/10e687235226880ed5e9f33f1ffa71fe60f2638a/nixos/modules/programs/steam.nix
hardware.graphics = {
enable = true;
enable32Bit = true;
};
services.pulseaudio.support32Bit = config.services.pulseaudio.enable;
services.pipewire.alsa.support32Bit = config.services.pipewire.alsa.enable;
};
}
-1
View File
@@ -2,5 +2,4 @@
{ {
options.lumpiasty.pc = lib.mkEnableOption "Enable options specific to personal computers"; options.lumpiasty.pc = lib.mkEnableOption "Enable options specific to personal computers";
options.lumpiasty.gaming = lib.mkEnableOption "Enable options specific to gaming computers";
} }