nixos-mod/improvedDef: add firefox

configures automatically:
- Pipewire Support
- XDG portal file picker (e.g. uses KDE picker on Plasma)
- XInput2
main
Felix Stupp 1 year ago
parent 36c7626ab6
commit dc03dc5dab
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -11,6 +11,7 @@ in
imports = [
./command-not-found.nix
./firefox.nix
./powertop-tlp.nix
./sshAuthorize.nix
./wayland.nix

@ -0,0 +1,36 @@
{ 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;
};
};
};
}
Loading…
Cancel
Save