mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-23 20:58:35 +01:00
Split Steam configs for profile separation
This commit is contained in:
parent
2330d9e7eb
commit
dd1af84ca7
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
11
config/system/amd-steam.nix
Normal file
11
config/system/amd-steam.nix
Normal 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; };
|
||||
};
|
||||
}
|
@ -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
|
||||
];
|
||||
|
15
config/system/intel-steam.nix
Normal file
15
config/system/intel-steam.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
}
|
11
system.nix
11
system.nix
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user