{ inputs, pkgs, config, lib, ...}: { programs.hyprland = lib.mkIf config.my.desktop.hyprland.enable { enable = true; # set the flake package package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; # make sure to also set the portal package, so that they are in sync portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; withUWSM = true; }; # environment.systemPackages = [ # (pkgs.stdenv.mkDerivation { # pname = "hyprland-uwsm-custom-session"; # version = "1.0"; # dontUnpack = true; # installPhase = '' # mkdir -p $out/share/wayland-sessions # cat > $out/share/wayland-sessions/hyprland-uwsm-custom.desktop <<'EOF' # [Desktop Entry] # Name=Hyprland (UWSM custom) # Comment=Hyprland with custom options # Exec=uwsm start hyprland # Type=Application # DesktopNames=Hyprland # EOF # ''; # }) # ]; }