feat: add hyprland WIP

This commit is contained in:
Jacob Bachmann 2024-03-19 19:10:27 +01:00
parent 971f3a44de
commit 7c5af81e75
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
8 changed files with 170 additions and 9 deletions

View file

@ -1,13 +1,14 @@
{ lib, config, ... }: lib.mkIf config.bchmnn.gui.enable {
{ lib, config, pkgs, ... }: lib.mkIf config.bchmnn.gui.enable {
xdg.portal = {
enable = true;
wlr.enable = true;
# gtk portal needed to make gtk apps happy
# extraPortals = [
# pkgs.xdg-desktop-portal-wlr
# pkgs.xdg-desktop-portal-gtk
# ];
# upper has been replaced by following
config.common.default = "*";
extraPortals = with lib; with config.bchmnn; optionals (elem "sway" gui.flavour) [
pkgs.xdg-desktop-portal-wlr
] ++ optionals (elem "hyprland" gui.flavour) [
pkgs.xdg-desktop-portal-hyprland
];
};
}