about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorKanashimia <chad@redpilled.dev>2023-10-24 21:38:32 +0300
committerGitHub <noreply@github.com>2023-10-24 21:38:32 +0300
commit952bb841aeadb56ab106eb62cdd128f446a47db0 (patch)
tree9e7565fdb19a983e1390e069c100be669894ff33 /nixos/modules/programs
parent589c74ae5db720612899c5b6f6e8dcdc1b97a8fc (diff)
downloadnixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.tar
nixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.tar.gz
nixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.tar.bz2
nixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.tar.lz
nixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.tar.xz
nixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.tar.zst
nixlib-952bb841aeadb56ab106eb62cdd128f446a47db0.zip
Revert "nixos/sway: add enableRealtime option"
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/wayland/sway.nix13
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; })