Files
cnix/hosts/core/hyprland.nix

24 lines
543 B
Nix

{pkgs, ...}: {
environment.variables = {
BROWSER = "firefox";
NIXOS_OZONE_WL = 1;
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
};
programs.hyprland = {
enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
systemd = {
enable = true;
extraCommands = [
"systemctl --user stop graphical-session.target"
"systemctl --user start hyprland-session.target"
];
};
};
}