27 lines
639 B
Nix
27 lines
639 B
Nix
{ config, pkgs, ... }: {
|
|
programs.hyprland = {
|
|
enable = true;
|
|
package = pkgs.unstable_pkgs.hyprland;
|
|
enableNvidiaPatches = builtins.elem "nvidia" config.services.xserver.videoDrivers;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
|
|
hardware = {
|
|
brillo.enable = true;
|
|
opengl.enable = true;
|
|
nvidia.modesetting.enable = builtins.elem "nvidia" config.services.xserver.videoDrivers;
|
|
};
|
|
|
|
services.pipewire.wireplumber.enable = true;
|
|
|
|
security.pam.services.swaylock = {
|
|
text = ''
|
|
auth include login
|
|
'';
|
|
};
|
|
}
|