mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Disable CAP_SYS_NICE hack for steam
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
9413748603
commit
97ea6ffe4a
|
@ -1,5 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
programs.gamemode.enable = true;
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
|
@ -23,12 +27,13 @@
|
|||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
package = pkgs.steam-small.override {
|
||||
extraLibraries = p: with p; [
|
||||
p.libkrb5
|
||||
p.keyutils
|
||||
];
|
||||
extraLibraries = p:
|
||||
with p; [
|
||||
p.libkrb5
|
||||
p.keyutils
|
||||
];
|
||||
# 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" ]; });
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue