From 910b6b6008c3bf8fa65a6c8d2e9fadcbafa59b54 Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:22:31 +0100 Subject: [PATCH] worked on librewolf config --- README.md | 3 ++- modules/home-manager/hyprland.nix | 5 +++-- modules/home-manager/librewolf.nix | 13 ++++++++++--- modules/home-manager/zsh.nix | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c946d6e..a4b3c15 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ git clone https://github.com/Totorile1/nixos.git cd ./nixos sudo nixos-rebuild switch --flake ~/nixos/#laptop ``` - +### Note +The only thing which I didn't find how to setup in a declarative way are librewolf's extension. You need to do it yourself diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index d92af58..e4c0892 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -21,7 +21,7 @@ in "$term" = "kitty"; "$editor" = "nvim"; "$file" = "nautilus"; - "$browser" = "kitty --name \"Select LibreWolf profile\" --hold custom-librewolfprofiles"; + "$browser" = "kitty --class \"custom-librewolfprofiles\" --name \"Select LibreWolf profile\" --hold custom-librewolfprofiles"; # ▄▀█ █▄░█ █ █▀▄▀█ ▄▀█ ▀█▀ █ █▀█ █▄░█ # █▀█ █░▀█ █ █░▀░█ █▀█ ░█░ █ █▄█ █░▀█ animations = { @@ -406,7 +406,8 @@ in "float,class:^(com.github.unrud.VideoDownloader)$" # VideoDownloader-Gkk "float,class:^(io.gitlab.adhami3310.Impression)$" # Impression-Gtk "float,class:^(io.missioncenter.MissionCenter)$" # MissionCenter-Gtk -"float,title:^(custom-librewolfprofiles)$" +"float,class:^(custom-librewolfprofiles)$" +"size 400 175, class:^(custom-librewolfprofiles)$" # add a float for tomato when in kitty #"plugin:imgborders:noimgborders, tag:noborder" ]; diff --git a/modules/home-manager/librewolf.nix b/modules/home-manager/librewolf.nix index 06f146d..5b78b84 100644 --- a/modules/home-manager/librewolf.nix +++ b/modules/home-manager/librewolf.nix @@ -118,6 +118,8 @@ }; policies = { ExtensionSettings = { + # the extension id should be from the manifesto and not a random name. + # if you dont know it. Put a random name. It will fail. Go to about:polices#error and the error will give you the correct id. "enhancerforyoutube@maximerf.addons.mozilla.org" = { installation_mode = "normal_installed"; install_url = "https://addons.mozilla.org/firefox/downloads/latest/enhancer-for-youtube/latest.xpi"; @@ -128,7 +130,7 @@ installation_mode = "force_installed"; }; - "AdNauseam@dhowe" = { + "adnauseam@rednoise.org" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/adnauseam/latest.xpi"; installation_mode = "force_installed"; }; @@ -136,15 +138,16 @@ install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; installation_mode = "blocked"; }; - "Gruvbox@YeetFrog" = { + "{08d5243b-4236-4a27-984b-1ded22ce01c3}" = { install_url = "https://addons.mozilla.org/firefox/downloads/file/3729287/gruvboxgruvboxgruvboxgruvboxgr-1.0.xpi"; installation_mode = "force_installed"; }; - "TrackMeNot@DanielHowe" = { + "trackmenot@mrl.nyu.edu" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/trackmenot/latest.xpi"; installation_mode = "force_installed"; }; }; + }; DisableTelemetry = true; DisableFirefoxStudies = true; EnableTrackingProtection = { @@ -174,6 +177,10 @@ "amazondotcom-es".metaData.hidden = true; "bing".metaData.hidden = true; "ebay".metaData.hidden = true; + "metager".metaData.hidden = true; + "mojeek".metaData.hidden = true; + "seerex".metaData.hidden = true; + "perplexity".metaData.hidden = true; "startpage" = { urls = [ { diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index ea79772..4c48ee3 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -25,7 +25,7 @@ custom-cat() { ls = "ls -hA -s --color"; cat = "custom-cat"; pomodoro = "kitty -e 'tomato'"; - librewolf = "kitty --name \"Select LibreWolf profile\" --hold custom-librewolfprofiles"; + librewolf = "kitty --class \"custom-librewolfprofiles\" --name \"Select LibreWolf profile\" --hold custom-librewolfprofiles"; }; }; }