From e2f0d0a00af7d879346cd2e5913e15e9631e6550 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig <Zynh0722@gmail.com> Date: Wed, 19 Mar 2025 06:24:24 -0700 Subject: [PATCH] hyprland: organize packages --- modules/hyprland.nix | 83 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 72 insertions(+), 11 deletions(-) diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 1557e22..e81aa7b 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -38,15 +38,68 @@ in xwayland.enable = lib.mkDefault true; }; - xdg.portal = { - enable = true; - extraPortals = [ - pkgs.xdg-desktop-portal-gtk + xdg.portal = { + enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + ]; + }; + + programs.waybar.enable = true; + + + + programs.hyprland = { + enable = true; + withUWSM = true; + xwayland.enable = true; + }; + + services.hypridle.enable = true; + systemd.user.services.hypridle.path = [ pkgs.brightnessctl ]; + + # programs.hyprlock.enable = true; + + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050913 + xdg.portal.config.hyprland.default = lib.mkDefault [ "wlr" "gtk" ]; + + services.xserver.desktopManager.runXdgAutostartIfNone = lib.mkDefault true; + + environment.variables = { + QT_QPA_PLATFORM = "wayland;xcb"; + MOZ_ENABLE_WAYLAND = 1; + SDL_VIDEODRIVEWR = "wayland,x11"; + _JAVA_AWT_WM_NONREPARENTING = 1; + }; + + environment.systemPackages = with pkgs; [ + # Screenshotting + grim + slurp + satty + + # Hardware Control + brightnessctl + + # Desktop + wofi + kitty + pipewire-controller + + # Wayland Utilities + wdisplays + xorg.xlsclients + wl-clipboard + + # sddm Theme + (pkgs.sddm-astronaut.override { embeddedTheme = "purple_leaves"; }) ]; }; programs.waybar.enable = true; + + programs.hyprland = { enable = true; withUWSM = true; @@ -71,22 +124,30 @@ in }; environment.systemPackages = with pkgs; [ + # Screenshotting grim slurp satty - wofi + # Hardware Control brightnessctl - wdisplays - xorg.xlsclients - - wl-clipboard + # Desktop + wofi kitty - pipewire-controller - (pkgs.sddm-astronaut.override { embeddedTheme = "pixel_sakura"; }) + # Wayland Utilities + wdisplays + xorg.xlsclients + wl-clipboard + + # sddm Theme + (pkgs.sddm-astronaut.override { embeddedTheme = "purple_leaves"; }) + + + # Cursor Theme + inputs.rose-pine-hyprcursor.packages.${pkgs.system}.default ]; home-manager.sharedModules = [