diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-11-19 21:02:52 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-11-19 21:02:52 +0100 |
| commit | 892de67a9f64d0b0cdb023d830a019d8feec0a57 (patch) | |
| tree | 0c5fd0c60ef93bb5cdc5f83c8cade0c5dddb4899 /modules/desktop/wms/hyprland.nix | |
| parent | f5b37610b3835ea26757ef36d554ec598d53100c (diff) | |
Nix fmt
Diffstat (limited to '')
| -rw-r--r-- | modules/desktop/wms/hyprland.nix | 83 |
1 files changed, 46 insertions, 37 deletions
diff --git a/modules/desktop/wms/hyprland.nix b/modules/desktop/wms/hyprland.nix index 8243b3d..dfc7116 100644 --- a/modules/desktop/wms/hyprland.nix +++ b/modules/desktop/wms/hyprland.nix @@ -1,43 +1,52 @@ -{pkgs, lib, config, ...}: - let cfg = config.addons.desktop.hyprland; -in { +{ + pkgs, + lib, + config, + ... +}: +let + cfg = config.addons.desktop.hyprland; +in +{ options.addons.desktop.hyprland = { - enable = lib.mkEnableOption "Enable 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"; + 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 - ]; - } - ]); -} + 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 + ]; + } + ] + ); +} |
