24 lines
582 B
Nix
24 lines
582 B
Nix
{ pkgs, inputs, config, lib, ...}:
|
|
let
|
|
cfg = config.my.desktop;
|
|
in
|
|
{
|
|
xdg = {
|
|
mime.enable = true;
|
|
menus.enable = true;
|
|
portal = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-gtk
|
|
]
|
|
++ lib.optionalAttrs cfg.hyprland.enable [
|
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
|
|
];
|
|
configPackages = []
|
|
++ lib.optionalAttrs cfg.hyprland.enable [
|
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
|
|
];
|
|
};
|
|
};
|
|
}
|