mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
hyprland: install xwayland if enabled
Install the `xwayland` package if `cfg.xwayland.enable = true;`. This allows XWayland to work without having to enable the NixOS Hyprland option.
This commit is contained in:
parent
885c037109
commit
8a20efbb00
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ in {
|
|||
"You have enabled hyprland.systemd.enable or listed plugins in hyprland.plugins but do not have any configuration in hyprland.settings or hyprland.extraConfig. This is almost certainly a mistake.";
|
||||
in lib.optional inconsistent warning;
|
||||
|
||||
home.packages = lib.optional (cfg.package != null) cfg.finalPackage;
|
||||
home.packages = lib.concatLists [
|
||||
(lib.optional (cfg.package != null) cfg.finalPackage)
|
||||
(lib.optional (cfg.xwayland.enable) pkgs.xwayland)
|
||||
];
|
||||
|
||||
xdg.configFile."hypr/hyprland.conf" = let
|
||||
shouldGenerate = cfg.systemd.enable || cfg.extraConfig != ""
|
||||
|
|
Loading…
Reference in a new issue