nixos/hyprland: set cap_sys_nice capability (#507419)
This commit is contained in:
@@ -83,6 +83,15 @@ in
|
||||
{
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
# Hyprland needs permissions to give itself SCHED_RR on startup:
|
||||
# https://github.com/hyprwm/Hyprland/blob/main/src/init/initHelpers.cpp
|
||||
security.wrappers.Hyprland = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
capabilities = "cap_sys_nice+ep";
|
||||
source = lib.getExe cfg.package;
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [ cfg.portalPackage ];
|
||||
|
||||
Reference in New Issue
Block a user