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.
37 lines
564 B
Nix
37 lines
564 B
Nix
2 months ago
|
{ 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;
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|