Split Steam configs for profile separation

This commit is contained in:
Tyler Kelley 2024-01-20 22:23:17 -06:00
parent 2330d9e7eb
commit dd1af84ca7
5 changed files with 35 additions and 7 deletions

View File

@ -6,5 +6,8 @@ lib.mkIf ("${deviceProfile}" == "amd-desktop") {
enable = true;
driSupport = true;
driSupport32Bit = true;
## amdvlk: an open-source Vulkan driver from AMD
extraPackages = [ pkgs.amdvlk ];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
};
}

View File

@ -0,0 +1,11 @@
{ pkgs, config, ... }:
lib.mkIf ("${deviceProfile}" == "amd-desktop") {
# Steam Configuration
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
package = pkgs.steam.override { withJava = true; };
};
}

View File

@ -3,9 +3,11 @@
{
imports = [
./amd-opengl.nix
./amd-steam.nix
./autorun.nix
./boot.nix
./intel-opengl.nix
./intel-steam.nix
./polkit.nix
./services.nix
];

View File

@ -0,0 +1,15 @@
{ pkgs, config, ... }:
lib.mkIf ("${deviceProfile}" == "intel-laptop") {
# Steam Configuration
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
package = pkgs.steam.override {
withPrimus = true;
withJava = true;
extraPkgs = pkgs: [ bumblebee glxinfo ];
};
};
}

View File

@ -51,17 +51,14 @@
noto-fonts-color-emoji material-icons brightnessctl
];
# Steam Configuration
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
programs.java.enable = true;
programs.steam.gamescopeSession.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.