blob: bec1a6bcc19fb6f58ce79e3e07f48563277ff86f [file] [log] [blame]
{ config, lib, pkgs, ... }: {
options = {
chimera.xdg-open.enable = lib.mkOption {
type = lib.types.bool;
description = "Whether to enable xdg-open";
default = false;
example = true;
};
};
config = lib.mkIf config.chimera.xdg-open.enable {
xdg.portal.enable = true;
xdg.portal.xdgOpenUsePortal = true;
environment.systemPackages = [ pkgs.xdg-utils ];
};
}