diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-11-04 21:59:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 21:59:06 +0000 |
commit | 3fcd5f430bcc1325ce2146251f45db8c01681aa0 (patch) | |
tree | b3aea15bfaf8a928304b875adbf16a4c81c2e027 /nixos/modules | |
parent | bea389de37abfab60ccb212caaaa6e428be5403b (diff) | |
parent | 952bb841aeadb56ab106eb62cdd128f446a47db0 (diff) |
Merge pull request #263206 from kanashimia/revert-259066-add-renice-sway
Revert "nixos/sway: add enableRealtime option"
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/programs/wayland/sway.nix | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/nixos/modules/programs/wayland/sway.nix b/nixos/modules/programs/wayland/sway.nix index de739faabee9..698d9c2b46c4 100644 --- a/nixos/modules/programs/wayland/sway.nix +++ b/nixos/modules/programs/wayland/sway.nix @@ -42,11 +42,6 @@ in { <https://github.com/swaywm/sway/wiki> and "man 5 sway" for more information''); - enableRealtime = mkEnableOption (lib.mdDoc '' - add CAP_SYS_NICE capability on `sway` binary for realtime scheduling - privileges. This may improve latency and reduce stuttering, specially in - high load scenarios'') // { default = true; }; - package = mkOption { type = with types; nullOr package; default = defaultSwayPackage; @@ -154,14 +149,6 @@ in { "sway/config".source = mkOptionDefault "${cfg.package}/etc/sway/config"; }; }; - security.wrappers = mkIf (cfg.enableRealtime && cfg.package != null) { - sway = { - owner = "root"; - group = "root"; - source = "${cfg.package}/bin/sway"; - capabilities = "cap_sys_nice+ep"; - }; - }; # To make a Sway session available if a display manager like SDDM is enabled: services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ]; } (import ./wayland-session.nix { inherit lib pkgs; }) |