switch to hyprland

This commit is contained in:
notgne2 2025-10-15 04:38:28 -07:00
parent 7d7756968c
commit b7bb2c58ed
No known key found for this signature in database
2 changed files with 184 additions and 438 deletions

View file

@ -12,38 +12,28 @@ in {
config = mkIf cfg.enable {
xdg.portal = {
enable = lib.mkDefault true;
wlr = {
enable = lib.mkDefault true;
settings = {
screencast = {
max_fps = lib.mkDefault 55;
chooser_type = lib.mkDefault "simple";
chooser_cmd = lib.mkDefault "${pkgs.slurp}/bin/slurp -f %o -or";
};
};
};
config = {
wlroots.default = ["wlr" "gtk"];
common.default = ["gtk"];
};
};
programs.hyprland.enable = true;
environment.sessionVariables = {
QT_QPA_PLATFORM = "wayland;wayland-egl;xcb";
QT_QPA_PLATFORM = "wayland;xcb";
MOZ_ENABLE_WAYLAND = "1";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
ECORE_EVAS_ENGINE = "wayland_egl";
ELM_ENGINE = "wayland_egl";
_JAVA_AWT_WM_NONREPARENTING = "1";
NIXOS_OZONE_WL = "1";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
};
services.greetd = {
enable = lib.mkDefault true;
settings = {
default_session = {
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --time --user-menu --user-menu-max-uid 30000 --cmd sway";
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --time --user-menu --user-menu-max-uid 30000 --cmd hyprland";
};
};
};