nixos/hyprland: set cap_sys_nice capability (#507419)

This commit is contained in:
Masum Reza
2026-05-18 12:47:44 +00:00
committed by GitHub
@@ -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 ];