From 1be972048dd58218cd689ecb5cac562eb398b751 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Sun, 17 Aug 2025 11:25:33 +0200 Subject: refreshed config --- modules/desktop/wms/hyprland.nix | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 modules/desktop/wms/hyprland.nix (limited to 'modules/desktop/wms/hyprland.nix') diff --git a/modules/desktop/wms/hyprland.nix b/modules/desktop/wms/hyprland.nix new file mode 100644 index 0000000..8243b3d --- /dev/null +++ b/modules/desktop/wms/hyprland.nix @@ -0,0 +1,43 @@ +{pkgs, lib, config, ...}: + let cfg = config.addons.desktop.hyprland; +in { + options.addons.desktop.hyprland = { + enable = lib.mkEnableOption "Enable Hyprland"; + }; + + config = lib.mkIf cfg.enable (lib.mkMerge [ + (import ../../../utils/makeWm.nix "hyprland" "wayland" ) + { + programs.hyprland.enable = true; + programs.hyprland.withUWSM = true; + programs.uwsm = { + enable = true; + waylandCompositors ={ + hyprland = { + prettyName = "Hyprland"; + comment = "Hyprland compositor managed by UWSM"; + binPath = "/run/current-system/sw/bin/Hyprland"; + }; + }; + }; + + environment.systemPackages = with pkgs; [ + hyprland + hyprshot + hypridle + hyprpaper + hyprpicker + hyprnotify + hyprcursor + hyprpolkitagent + wofi + waybar + waybar-mpris + mako + xdg-desktop-portal-gnome + xdg-desktop-portal-hyprland + wl-clipboard + ]; + } + ]); +} -- cgit v1.3.1