synix/modules/home/hyprland/xdg/default.nix
sid ecf5132cbb
Some checks failed
Build tests / build-hosts (pull_request) Failing after 3s
Flake check / flake-check (pull_request) Failing after 13s
enforce new flake schema. formatting.
2026-05-31 18:50:41 +02:00

29 lines
530 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;
extraPortals = [ portal ];
configPackages = [ portal ];
};
};
}