{pkgs, ...}: #let #mkNixPak = inputs.nixpak.lib.nixpak { # inherit (pkgs) lib; # inherit pkgs; #}; # #firefox = mkNixPak { # config = { # config, # sloth, # ... # }: { # app.package = pkgs.firefox; # flatpak.appId = "org.mozilla.firefox"; # # imports = [ # (inputs.nixpak-pkgs + "/pkgs/modules/gui-base.nix") # (inputs.nixpak-pkgs + "/pkgs/modules/network.nix") # ]; # # # Specified in https://github.com/schizofox/schizofox/blob/main/modules/hm/default.nix # # I really don't have any idea what am I doing, it just works™ # dbus.policies = { # "org.mozilla.firefox.*" = "own"; # #"org.mozilla.firefox_beta.*" = "own"; # }; # # bubblewrap = let # envSuffix = envKey: sloth.concat' (sloth.env envKey); # in { # bind.rw = [ # "/tmp/.X11-unix" # (sloth.envOr "XAUTHORITY" "/no-xauth") # (envSuffix "XDG_RUNTIME_DIR" "/dconf") # (sloth.concat' sloth.homeDir "/.mozilla") # (sloth.concat' sloth.homeDir "/Downloads") # ]; # bind.ro = [ # "/etc/localtime" # "/sys/bus/pci" # # ["${config.app.package}/lib/firefox" "/app/etc/firefox"] # (sloth.concat' sloth.xdgConfigHome "/dconf") # ]; # }; # }; #}; #in { programs.firefox = { enable = true; #package = firefox.config.env; # it didnt work profiles."default" = { extraConfig = '' ${builtins.readFile (pkgs.fetchurl { url = "https://raw.githubusercontent.com/arkenfox/user.js/122.0/user.js"; hash = "sha256-H3Nk5sDxSElGRgK+cyQpVyjtlMF2Okxbstu9A+eJtGk="; })} ${builtins.readFile ./user-overrides.js} ''; }; }; home.sessionVariables = { MOZ_USE_XINPUT2 = "1"; }; }