24 lines
607 B
Nix
24 lines
607 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
# Undo nixpkgs' cap_sys_nice wrapper — it leaks into every child
|
|
# process (terminal, rofi, everything), breaking bwrap-sandboxed
|
|
# apps like Steam. We don't use RT scheduling anyway (see below).
|
|
security.wrappers.Hyprland = lib.mkForce {
|
|
owner = "root";
|
|
group = "root";
|
|
source = lib.getExe config.programs.hyprland.package;
|
|
capabilities = "";
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
NIXOS_OZONE_WL = "1";
|
|
HYPRLAND_NO_RT = "1";
|
|
};
|
|
} |