You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
566 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.x-banananetwork.improvedDefaults;
fx = config.programs.firefox;
in
{
config = lib.mkIf (cfg.enable && fx.enable) {
# TODO only on touchscreen / wayland
environment.sessionVariables = {
MOZ_USE_XINPUT2 = "1";
};
programs.firefox = {
preferences = {
"widget.use-xdg-desktop-portal.file-picker" = lib.mkIf config.xdg.portal.enable true;
};
wrapperConfig = {
pipewireSupport = lib.mkIf config.services.pipewire.enable true;
};
};
};
}