diff --git a/flake.nix b/flake.nix index eeb9582..970c3e9 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,11 @@ nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nur.url = "github:nix-community/NUR"; + firefox-addons = { + url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + hypr-contrib.url = "github:hyprwm/contrib"; fjordlauncher.url = "github:unmojang/FjordLauncher"; diff --git a/modules/home/browsers/default.nix b/modules/home/browsers/default.nix new file mode 100644 index 0000000..397d431 --- /dev/null +++ b/modules/home/browsers/default.nix @@ -0,0 +1,10 @@ +{...}: { + imports = [(import ./librewolf.nix)]; + + xdg.mimeApps.defaultApplications = { + "text/html" = ["librewolf.desktop"]; + "text/xml" = ["librewolf.desktop"]; + "x-scheme-handler/http" = ["librewolf.desktop"]; + "x-scheme-handler/https" = ["librewolf.desktop"]; + }; +} diff --git a/modules/home/browsers/librewolf.nix b/modules/home/browsers/librewolf.nix new file mode 100644 index 0000000..2781eb8 --- /dev/null +++ b/modules/home/browsers/librewolf.nix @@ -0,0 +1,80 @@ +{ + pkgs, + inputs, + ... +}: { + programs.librewolf = { + enable = true; + settings = { + "webgl.disabled" = false; + # "privacy.resistFingerprinting" = false; + "privacy.clearOnShutdown.history" = false; + "privacy.clearOnShutdown.cookies" = false; + "network.cookie.lifetimePolicy" = 0; + "identity.fxaccounts.enabled" = true; + }; + profiles.pedro = { + search = { + force = true; + default = "FruesX"; + privateDefault = "FruesX"; + order = ["FruesX" "DuckDuckGo" "Google"]; + engines = { + "FruesX" = { + urls = [{template = "https://searx.peprolinbot.com/search?q={searchTerms}";}]; + iconUpdateURL = "https://searx.peprolinbot.com/favicon.ico"; + }; + }; + }; + bookmarks = {}; + extensions = with inputs.firefox-addons.packages.${pkgs.system}; [ + # ublock-origin # Included in Librewolf + bitwarden + skip-redirect + libredirect + multi-account-containers + clearurls + istilldontcareaboutcookies + hoppscotch + ]; + bookmarks = {}; + settings = { + # Sync settings + "services.sync.engine.addresses" = false; + "services.sync.engine.bookmarks" = true; + "services.sync.engine.creditcards" = false; + "services.sync.engine.history" = true; + "services.sync.engine.passwords" = false; + "services.sync.engine.prefs" = false; + "services.sync.engine.tabs" = true; + + # Layout + "browser.uiCustomization.state" = builtins.toJSON { + currentVersion = 20; + newElementCount = 5; + dirtyAreaCache = ["nav-bar" "PersonalToolbar" "toolbar-menubar" "TabsToolbar" "widget-overflow-fixed-list"]; + placements = { + PersonalToolbar = ["personal-bookmarks"]; + TabsToolbar = ["tabbrowser-tabs" "new-tab-button" "alltabs-button"]; + nav-bar = [ + "back-button" + "forward-button" + "stop-reload-button" + "urlbar-container" + "downloads-button" + "ublock0_raymondhill_net-browser-action" # uBlock + "_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action" # Bitwarden + "7esoorv3_alefvanoon_anonaddy_me-browser-action" # LibRedirect + "_testpilot-containers-browser-action" # Multi-account containers + "unified-extensions-button" # Button with the rest of extensions + ]; + toolbar-menubar = ["menubar-items"]; + unified-extensions-area = []; + widget-overflow-fixed-list = []; + }; + seen = ["developer-button" "ublock0_raymondhill_net-browser-action" "_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action" "_testpilot-containers-browser-action"]; + }; + }; + }; + }; +} diff --git a/modules/home/default.nix b/modules/home/default.nix index fc26e5d..21dafb0 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -6,11 +6,11 @@ }: { imports = [(import ./bat.nix)] # better cat command + ++ [(import ./browsers)] # browser configurations ++ [(import ./btop.nix)] # resouces monitor ++ [(import ./cava.nix)] # audio visualizer ++ [(import ./discord.nix)] # discord with catppuccin theme ++ [(import ./gpg.nix)] # GnuPG and its agent (gpg-agent) - ++ [(import ./floorp/floorp.nix)] # firefox based browser ++ [(import ./fuzzel.nix)] # launcher ++ [(import ./gaming.nix)] # packages related to gaming ++ [(import ./git.nix)] # version control diff --git a/modules/home/floorp/extensions_list.txt b/modules/home/floorp/extensions_list.txt deleted file mode 100644 index 13a5cbc..0000000 --- a/modules/home/floorp/extensions_list.txt +++ /dev/null @@ -1,14 +0,0 @@ -Bitwarden Password Manager -ClearURLs -Dark Reader -Decentraleyes -Firefox Color -FoxyProxy -I still don't care about cookies -LibRedirect -Privacy Badger -Ruffle - Flash Emulator -Tree Style Tab -Tridactyl -uBlock Origin -Wappalyzer - Technology profiler diff --git a/modules/home/floorp/floorp.nix b/modules/home/floorp/floorp.nix deleted file mode 100644 index 6a58750..0000000 --- a/modules/home/floorp/floorp.nix +++ /dev/null @@ -1,3 +0,0 @@ -{pkgs, ...}: { - home.packages = with pkgs; [floorp]; -} diff --git a/modules/home/hyprland/variables.nix b/modules/home/hyprland/variables.nix index 703c16e..6e4f740 100644 --- a/modules/home/hyprland/variables.nix +++ b/modules/home/hyprland/variables.nix @@ -20,6 +20,7 @@ QT_QPA_PLATFORMTHEME = "qt5ct"; QT_STYLE_OVERRIDE = "kvantum"; MOZ_ENABLE_WAYLAND = "1"; + MOZ_USE_XINPUT2 = "1"; WLR_BACKEND = "vulkan"; WLR_NO_HARDWARE_CURSORS = "1"; XDG_SESSION_TYPE = "wayland";