moving hyprland to system-wide instead of hm to test 2

This commit is contained in:
cnst
2024-06-30 07:56:37 +02:00
parent e7df7d8698
commit 51e10705bb
6 changed files with 4 additions and 56 deletions

23
hosts/core/hyprland.nix Normal file
View File

@@ -0,0 +1,23 @@
{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"
];
};
};
}