init: Request SCHED_RR using CAP_SYS_NICE and add Python to nix dev shell (#2690)

* nix: add python3 to devShell

* init: request SCHED_RR scheduling policy

* init: checks if host supports reseting scheduler on fork

* init: make gainRealTime more compatible with other OSes

* init: remove linux-only code
This commit is contained in:
Mily 2023-07-23 15:51:00 -03:00 committed by GitHub
parent 50e6f368ff
commit 9fc5f4c48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View file

@ -77,7 +77,7 @@
devShells = genSystems (system: {
default = pkgsFor.${system}.mkShell {
name = "hyprland-shell";
nativeBuildInputs = with pkgsFor.${system}; [cmake];
nativeBuildInputs = with pkgsFor.${system}; [ cmake python3 ];
buildInputs = [self.packages.${system}.wlroots-hyprland];
inputsFrom = [
self.packages.${system}.wlroots-hyprland