synix/modules/home/hyprland/xdg/default.nix
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

27 lines
523 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.wayland.windowManager.hyprland;
portal = pkgs.xdg-desktop-portal-hyprland;
inherit (lib) mkDefault mkIf;
in
{
config.xdg = mkIf cfg.enable {
enable = mkDefault true;
mime.enable = mkDefault true;
mimeApps.enable = mkDefault true;
userDirs = {
enable = mkDefault true;
createDirectories = mkDefault true;
};
portal.enable = mkDefault true;
portal.extraPortals = [ portal ];
portal.configPackages = [ portal ];
};
}