Skip to content

Commit c55b5cb

Browse files
authored
nixos/hyprland: set cap_sys_nice capability (#507419)
2 parents 2bcb47e + da13d40 commit c55b5cb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

nixos/modules/programs/wayland/hyprland.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ in
8383
{
8484
environment.systemPackages = [ cfg.package ];
8585

86+
# Hyprland needs permissions to give itself SCHED_RR on startup:
87+
# https://github.com/hyprwm/Hyprland/blob/main/src/init/initHelpers.cpp
88+
security.wrappers.Hyprland = {
89+
owner = "root";
90+
group = "root";
91+
capabilities = "cap_sys_nice+ep";
92+
source = lib.getExe cfg.package;
93+
};
94+
8695
xdg.portal = {
8796
enable = true;
8897
extraPortals = [ cfg.portalPackage ];

0 commit comments

Comments
 (0)