From: Andrew Date: Tue, 2 Sep 2025 13:08:51 +0000 (-0400) Subject: try librewolf and schizofox X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.js?a=commitdiff_plain;h=9705233e6c1d9412c8c4f00502c78580819ed068;p=nixos.git try librewolf and schizofox --- diff --git a/flake.lock b/flake.lock index 8a508a0..b3aa9e1 100644 --- a/flake.lock +++ b/flake.lock @@ -67,6 +67,21 @@ "type": "github" } }, + "crane": { + "locked": { + "lastModified": 1736032295, + "narHash": "sha256-QNRlMxQTT3rdgsQb3QxljO14kE8xxdDXNJ/4jIm4u3Q=", + "owner": "ipetkov", + "repo": "crane", + "rev": "9fa361afe873c740d5ca10ff526463d5807eab88", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, "firefox-gnome-theme": { "flake": false, "locked": { @@ -99,7 +114,44 @@ "url": "https://git.lix.systems/lix-project/flake-compat.git" } }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-parts": { + "inputs": { + "nixpkgs-lib": [ + "nur", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1733312601, + "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { "inputs": { "nixpkgs-lib": [ "nvf", @@ -120,7 +172,46 @@ "type": "github" } }, - "flake-parts_2": { + "flake-parts_3": { + "inputs": { + "nixpkgs-lib": [ + "schizofox", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1754487366, + "narHash": "sha256-pHYj8gUBapuUzKV/kN/tR3Zvqc7o6gdFB9XKXIp1SQ8=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "af66ad14b28a127c5c0f3bbb298218fc63528a18", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_4": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1735774679, + "narHash": "sha256-soePLBazJk0qQdDVhdbM98vYdssfs3WFedcq+raipRI=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "f2f7418ce0ab4a5309a4596161d154cfc877af66", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_5": { "inputs": { "nixpkgs-lib": [ "stylix", @@ -174,6 +265,33 @@ "type": "github" } }, + "hercules-ci-effects": { + "inputs": { + "flake-parts": [ + "schizofox", + "nixpak", + "flake-parts" + ], + "nixpkgs": [ + "schizofox", + "nixpak", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1755233722, + "narHash": "sha256-AavrbMltJKcC2Fx0lfJoZfmy7g87ebXU0ddVenhajLA=", + "owner": "hercules-ci", + "repo": "hercules-ci-effects", + "rev": "99e03e72e3f7e13506f80ef9ebaedccb929d84d0", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "hercules-ci-effects", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -194,6 +312,27 @@ "type": "github" } }, + "home-manager_2": { + "inputs": { + "nixpkgs": [ + "schizofox", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1756261190, + "narHash": "sha256-eiy0klFK5EVJLNilutR7grsZN/7Itj9DyD75eyOf83k=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "77f348da3176dc68b20a73dab94852a417daf361", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, "mnw": { "locked": { "lastModified": 1748710831, @@ -209,6 +348,32 @@ "type": "github" } }, + "nixpak": { + "inputs": { + "flake-parts": [ + "schizofox", + "flake-parts" + ], + "hercules-ci-effects": "hercules-ci-effects", + "nixpkgs": [ + "schizofox", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1755744259, + "narHash": "sha256-Geu6lISTz97euRVTx4MSksRNafEEXzClN0b15aT/IrE=", + "owner": "nixpak", + "repo": "nixpak", + "rev": "52c4b650843c3aec1ca3a4200c6b7bb7ed0faaed", + "type": "github" + }, + "original": { + "owner": "nixpak", + "repo": "nixpak", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1756542300, @@ -225,7 +390,35 @@ "type": "github" } }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1735774519, + "narHash": "sha256-CewEm1o2eVAnoqb6Ml+Qi9Gg/EfNAxbRx1lANGVyoLI=", + "type": "tarball", + "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" + } + }, "nixpkgs_2": { + "locked": { + "lastModified": 1756542300, + "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1755049066, "narHash": "sha256-ANrc15FSoOAdNbfKHxqEJjZLftIwIsenJGRb/04K41s=", @@ -241,7 +434,42 @@ "type": "github" } }, + "nixpkgs_4": { + "locked": { + "lastModified": 1756266583, + "narHash": "sha256-cr748nSmpfvnhqSXPiCfUPxRz2FJnvf/RjJGvFfaCsM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8a6d5427d99ec71c64f0b93d45778c889005d9c2", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, "nur": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1756685388, + "narHash": "sha256-aEt7Ke31q7VCuIAQodZ3P+onifaZ3QHCSP9qXLF3bLA=", + "owner": "nix-community", + "repo": "NUR", + "rev": "fe7174935739aa55472ab68b9073d46342828790", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, + "nur_2": { "inputs": { "flake-parts": [ "stylix", @@ -269,9 +497,9 @@ "nvf": { "inputs": { "flake-compat": "flake-compat", - "flake-parts": "flake-parts", + "flake-parts": "flake-parts_2", "mnw": "mnw", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs_3", "systems": "systems" }, "locked": { @@ -292,10 +520,59 @@ "inputs": { "home-manager": "home-manager", "nixpkgs": "nixpkgs", + "nur": "nur", "nvf": "nvf", + "schizofox": "schizofox", "stylix": "stylix" } }, + "schizofox": { + "inputs": { + "flake-compat": "flake-compat_2", + "flake-parts": "flake-parts_3", + "home-manager": "home-manager_2", + "nixpak": "nixpak", + "nixpkgs": "nixpkgs_4", + "searx-randomizer": "searx-randomizer", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1756308127, + "narHash": "sha256-BGHVikTQAMlGuxhJ3BHh5meuylDh1CZd8I3XGgIK5Hc=", + "owner": "schizofox", + "repo": "schizofox", + "rev": "428833d6a0fbc577b05de130a9bc3c99b027d8da", + "type": "github" + }, + "original": { + "owner": "schizofox", + "repo": "schizofox", + "type": "github" + } + }, + "searx-randomizer": { + "inputs": { + "crane": "crane", + "flake-parts": "flake-parts_4", + "nixpkgs": [ + "schizofox", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1736054833, + "narHash": "sha256-fSvHee00LQpndvJ0N4ZahRuoAQd06g8ecdUzfNPLvLk=", + "owner": "schizofox", + "repo": "searx-randomizer", + "rev": "63d6fed21ae5a6608bac71665887a432781161c6", + "type": "github" + }, + "original": { + "owner": "schizofox", + "repo": "searx-randomizer", + "type": "github" + } + }, "stylix": { "inputs": { "base16": "base16", @@ -303,13 +580,13 @@ "base16-helix": "base16-helix", "base16-vim": "base16-vim", "firefox-gnome-theme": "firefox-gnome-theme", - "flake-parts": "flake-parts_2", + "flake-parts": "flake-parts_5", "gnome-shell": "gnome-shell", "nixpkgs": [ "nixpkgs" ], - "nur": "nur", - "systems": "systems_2", + "nur": "nur_2", + "systems": "systems_3", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -346,6 +623,21 @@ } }, "systems_2": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, + "systems_3": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", diff --git a/flake.nix b/flake.nix index a8951e4..801ffa7 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,11 @@ nvf = { url = "github:notashelf/nvf"; }; + schizofox.url = "github:schizofox/schizofox"; + nur = { + url = "github:nix-community/NUR"; + #inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { @@ -22,6 +27,8 @@ home-manager, stylix, nvf, + schizofox, + nur, ... } @ inputs: let lib = nixpkgs.lib; @@ -29,6 +36,7 @@ pkgs = import nixpkgs { inherit system; config.allowUnfree = true; + overlays = [nur.overlay]; }; skullNeovim = nvf.lib.neovimConfiguration { inherit pkgs; @@ -41,7 +49,9 @@ nixosConfigurations = { home = lib.nixosSystem { inherit system; - modules = [./configuration.nix]; + modules = [ + ./configuration.nix + ]; specialArgs = { inherit inputs; }; @@ -52,6 +62,7 @@ inherit pkgs; modules = [ stylix.homeModules.stylix + #nur.modules.nixos.default ./home.nix ]; extraSpecialArgs = {inherit inputs skullNeovim;}; diff --git a/home.nix b/home.nix index 90c25ed..e052586 100644 --- a/home.nix +++ b/home.nix @@ -27,6 +27,8 @@ ./waybar.nix ./freetube.nix ./qutebrowser.nix + ./librewolf.nix + #./schizofox.nix ]; # Home Manager needs a bit of information about you and the paths it should @@ -77,6 +79,8 @@ skullNeovim.neovim + protonvpn-cli + protonvpn-gui # # It is sometimes useful to fine-tune packages, for example, by applying # # overrides. You can do that directly here, just don't forget the # # parentheses. Maybe you want to install Nerd Fonts with a limited number of @@ -191,6 +195,7 @@ size = 25; package = pkgs.bibata-cursors; }; + # Let Home Manager install and manage itself. programs.home-manager.enable = true; } diff --git a/librewolf.nix b/librewolf.nix new file mode 100644 index 0000000..e76d88c --- /dev/null +++ b/librewolf.nix @@ -0,0 +1,48 @@ +{ + inputs, + config, + pkgs, + ... +}: { + programs.librewolf = { + enable = true; + settings = { + "browser.startup.page" = 3; + "privacy.clearOnShutdown.history" = false; + "privacy.clearOnShutdown.downloads" = false; + "privacy.resistFingerprinting" = false; + "browser.sessionstore.resume_from_crash" = true; + "middlemouse.paste" = false; + "general.autoScroll" = true; + "sidebar.verticalTabs" = true; + "sidebar.position_start" = false; # move to right hand side + "privacy.clearOnShutdown.cookies" = true; + "privacy.clearOnShutdown_v2.cookiesAndStorage" = false; + }; + profiles."skull" = { + extensions = { + force = true; + packages = with pkgs.nur.repos.rycee.firefox-addons; [ + sponsorblock + ublock-origin + vimium-c + keepassxc-browser + ]; + settings = { + "uBlock0@raymondhill.net".settings = { + enabled = true; + }; + "sponsorBlocker@ajay.app".settings = { + enabled = true; + }; + "keepassxc-browser@keepassxc.org".settings = { + enabled = true; + }; + "vimium-c@gdh1995.cn".settings = { + enabled = true; + }; + }; + }; + }; + }; +} diff --git a/schizofox.nix b/schizofox.nix new file mode 100644 index 0000000..83abb1e --- /dev/null +++ b/schizofox.nix @@ -0,0 +1,89 @@ +{ + inputs, + config, + pkgs, + ... +}: let + nur-no-pkgs = import (builtins.fetchTarball { + url = "https://github.com/nix-community/NUR/archive/main.tar.gz"; + sha256 = "1c3cfyqmqspz93103pcrys4jgsizfzba2440p11bbazmxllpnjv8"; + }) {}; +in { + imports = [inputs.schizofox.homeManagerModule]; + programs.schizofox = { + enable = true; + settings = { + }; + theme = { + colors = { + background-darker = "181825"; + background = "1e1e2e"; + foreground = "cdd6f4"; + }; + + font = "Lexend"; + + extraUserChrome = '' + body { + color: red !important; + } + ''; + }; + + search = { + defaultSearchEngine = "Brave"; + removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"]; + searxUrl = "https://searx.be"; + searxQuery = "https://searx.be/search?q={searchTerms}&categories=general"; + }; + + security = { + #sanitizeOnShutdown.enable = true; + sandbox.enable = true; + #userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"; + }; + + misc = { + drm.enable = true; + disableWebgl = false; + #startPageURL = "file://${builtins.readFile ./startpage.html}"; + contextMenu.enable = true; + bookmarks = [ + { + Title = "Example"; + URL = "https://example.com"; + Favicon = "https://example.com/favicon.ico"; + Placement = "toolbar"; + Folder = "FolderName"; + } + ]; + }; + + extensions = { + darkreader.enable = true; + }; + + # profiles.andrew.extensions.packages = with inputs.firefox-addons.packages.${pkgs.system}; [ + # ublock-origin + # #vimium_c + # sponsorblock + # darkreader + # ]; + # extensions = { + # #ublockorigin.enable = true; + # #vimiumc.enable = true; + # #sponsorblock.enable = true; + # simplefox.enable = true; + # darkreader.enable = true; + # + # extraExtensions = { + # #"webextension@ublock_origin".install_url = "https://addons.mozilla.org/firefox/downloads/file/4531307/ublock_origin-1.65.0.xpi"; + # #"webextension@sponsorblock".install_url = "https://addons.mozilla.org/ + #firefox/downloads/file/4541835/sponsorblock-5.14.xpi"; + # #"webextension@vimium_c".install_url = "https://addons.mozilla.org/firefox/downloads/file/4474326/vimium_c-2.12.3.xpi"; + # + # #"webextension@metamask.io".install_url = "https://addons.mozilla.org/firefox/downloads/latest/ether-metamask/latest.xpi"; + # }; + # }; + }; +} diff --git a/stylix.nix b/stylix.nix index 12b33a9..48f0cd9 100644 --- a/stylix.nix +++ b/stylix.nix @@ -1,6 +1,8 @@ -{ config, pkgs, ... }: { - + config, + pkgs, + ... +}: { stylix = { enable = true; autoEnable = true; @@ -45,8 +47,10 @@ hyprpaper.enable = true; fzf.enable = true; dunst.enable = true; - + librewolf = { + enable = true; + profileNames = ["skull"]; + }; }; - }; } diff --git a/vimium_c-20250831_231634.json b/vimium_c-20250831_231634.json new file mode 100644 index 0000000..a1e8995 --- /dev/null +++ b/vimium_c-20250831_231634.json @@ -0,0 +1,16 @@ +{ + "name": "Vimium C", + "@time": "2025-08-31, 11:16:34 p.m.", + "time": 1756696594417, + "environment": { + "extension": "2.12.3", + "platform": "linux", + "firefox": 142 + }, + "keyMappings": [ + "#!no-check", + "map J nextTab", + "map K previousTab", + "" + ] +}