nixos/modules/home/xdg.nix

26 lines
407 B
Nix

{
lib,
osConfig,
pkgs,
...
}:
with lib;
let
hyprlandCfg = osConfig.modules.hyprland;
in
{
xdg = {
enable = true;
mime.enable = true;
mimeApps.enable = true;
portal = {
enable = true;
extraPortals = mkIf hyprlandCfg.enable [
pkgs.xdg-desktop-portal-hyprland
];
configPackages = mkIf hyprlandCfg.enable [
pkgs.hyprland
];
};
};
}