configuration.nix/home/wm/default.nix

26 lines
571 B
Nix

{ config, pkgs, hyprland, ... }:
let
hyprland-pkg = config.wayland.windowManager.hyprland.finalPackage;
#xdph = hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland.override { hyprland = hyprland-pkg; };
xdph = pkgs.xdg-desktop-portal-hyprland;
in
{
imports = [
./hyprland
./addon
];
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
xdph
];
config = {
common = {
default = [ "gtk" ];
};
};
configPackages = [ hyprland-pkg ];
};
}