Disable CAP_SYS_NICE hack for steam

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2023-12-24 17:02:07 +01:00
parent 9413748603
commit 97ea6ffe4a
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -1,5 +1,9 @@
{ pkgs, lib, config, ... }:
{ {
pkgs,
lib,
config,
...
}: {
programs.gamemode.enable = true; programs.gamemode.enable = true;
programs.gamescope = { programs.gamescope = {
enable = true; enable = true;
@ -23,12 +27,13 @@
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
package = pkgs.steam-small.override { package = pkgs.steam-small.override {
extraLibraries = p: with p; [ extraLibraries = p:
p.libkrb5 with p; [
p.keyutils p.libkrb5
]; p.keyutils
];
# this is the worst thing I have written in ages, but it works # this is the worst thing I have written in ages, but it works
buildFHSEnv = x: pkgs.buildFHSEnv (x // { extraBwrapArgs = x.extraBwrapArgs ++ [ "--cap-add CAP_SYS_NICE --cap-add CAP_SETPCAP" ]; }); # buildFHSEnv = x: pkgs.buildFHSEnv (x // { extraBwrapArgs = x.extraBwrapArgs ++ [ "--cap-add CAP_SYS_NICE --cap-add CAP_SETPCAP" ]; });
}; };
}; };