summaryrefslogtreecommitdiff
path: root/hm/soft
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-03-15 22:13:15 +0100
committeradikro <adikro@disroot.org>2026-03-15 22:13:15 +0100
commit18f08bf53591f3e68043730a627889957009deb6 (patch)
tree228a31ab5489e98253e963424cd064d57dcd7a6e /hm/soft
parent8eb0e90219a4de87d8d476e15329e14720f091c6 (diff)
browser stuff
Diffstat (limited to 'hm/soft')
-rw-r--r--hm/soft/browser.nix124
-rw-r--r--hm/soft/czkawka-v11.nix97
-rw-r--r--hm/soft/nixcord.nix10
3 files changed, 127 insertions, 104 deletions
diff --git a/hm/soft/browser.nix b/hm/soft/browser.nix
index dd8f129..fd57809 100644
--- a/hm/soft/browser.nix
+++ b/hm/soft/browser.nix
@@ -16,10 +16,130 @@ in
(lib.mkIf cfg.librewolf.enable {
programs.librewolf = {
enable = true;
- settings."ui.key.menuAccessKeyFocuses" = false;
+ settings = {
+ "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
+ };
+
+ profiles = {
+ main = {
+ id = 0;
+ name = "main";
+ isDefault = true;
+ search = {
+ force = true;
+ engines = {
+ "SearXNG" = {
+ urls = [ { template = "https://sxng.violets-purgatory.dev/search?q={searchTerms}"; } ];
+ definedAliases = [ "@s" ];
+ };
+ "NixOS Packages" = {
+ urls = [ { template = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}"; } ];
+ icon = "";
+ definedAliases = [ "@np" ];
+ };
+ "NixOS Options" = {
+ urls = [ { template = "https://search.nixos.org/options?channel=unstable&query={searchTerms}"; } ];
+ icon = "";
+ definedAliases = [ "@no" ];
+ };
+ "Home Manager Options" = {
+ urls = [
+ { template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master"; }
+ ];
+ definedAliases = [ "@hm" ];
+ };
+ };
+ };
+ settings = {
+ "identity.fxaccounts.enabled" = true;
+
+ # --- Privacy & Fingerprinting ---
+ "privacy.resistFingerprinting" = true;
+ "privacy.fingerprintingProtection" = true;
+ "privacy.query_stripping.enabled" = true;
+ "privacy.query_stripping.enabled.pbmode" = true;
+ "privacy.trackingprotection.enabled" = true;
+ "privacy.trackingprotection.socialtracking.enabled" = true;
+ "privacy.trackingprotection.emailtracking.enabled" = true;
+ "privacy.bounceTrackingProtection.mode" = 1;
+ "privacy.annotate_channels.strict_list.enabled" = true;
+ "privacy.clearOnShutdown_v2.formdata" = true;
+
+ # --- Data Collection & Form Security ---
+ "dom.forms.autocomplete.formautofill" = false;
+ "signon.management.page.breach-alerts.enabled" = false;
+ "browser.translations.enable" = false;
+ "browser.region.update.enabled" = false;
+
+ # --- Search & URL Bar ---
+ "browser.urlbar.shortcuts.bookmarks" = false;
+ "browser.urlbar.shortcuts.history" = false;
+ "browser.urlbar.shortcuts.tabs" = false;
+ "browser.urlbar.shortcuts.actions" = false;
+ "browser.urlbar.showSearchTerms.enabled" = false;
+
+ # --- Networking & Performance ---
+ "network.proxy.type" = 0;
+ "network.prefetch-next" = false;
+ "network.predictor.enabled" = false;
+ "network.http.speculative-parallel-limit" = 0;
+ "network.early-hints.preconnect.max_connections" = 0;
+ "network.connectivity-service.enabled" = false;
+ "network.captive-portal-service.enabled" = false;
+ "security.tls.enable_0rtt_data" = false;
+
+ # --- Interface & De-clutter ---
+ "browser.startup.page" = 3;
+ "browser.startup.homepage" = "chrome://browser/content/blanktab.html";
+ "browser.newtabpage.enabled" = false;
+ "browser.newtabpage.activity-stream.showSearch" = false;
+ "browser.newtabpage.activity-stream.showSponsoredCheckboxes" = false;
+ "browser.bookmarks.restore_default_bookmarks" = false;
+ "media.hardwaremediakeys.enabled" = false;
+ "media.videocontrols.picture-in-picture.video-toggle.enabled" = false;
+ "layout.spellcheckDefault" = 0;
+
+ # --- Safe Browsing (Privacy Trade-off) ---
+ "browser.safebrowsing.downloads.remote.enabled" = false;
+ "browser.safebrowsing.downloads.remote.block_potentially_unwanted" = false;
+ "browser.safebrowsing.downloads.remote.block_uncommon" = false;
+ };
+ userChrome = ''
+ #TabsToolbar { visibility: collapse !important; }
+ #sidebar-header { display: none !important; }
+ #toolbar-menubar { display: none !important; }
+ '';
+ };
+ privacy = {
+ id = 1;
+ name = "privacy";
+ settings = {
+ "media.peerconnection.enabled" = false;
+ "network.proxy.type" = 1;
+
+ "network.proxy.http" = "127.0.0.1";
+ "network.proxy.http_port" = 4444;
+
+ "network.proxy.ssl" = "127.0.0.1";
+ "network.proxy.ssl_port" = 4444;
+
+ "network.proxy.no_proxies_on" = "localhost, 127.0.0.1";
+
+ "network.http.proxy.pipelining" = true;
+ "network.proxy.share_proxy_settings" = true;
+
+ "network.prefetch-next" = false;
+ "network.dns.disablePrefetch" = true;
+ };
+ userChrome = ''
+ #TabsToolbar { visibility: collapse !important; }
+ #sidebar-header { display: none !important; }
+ #toolbar-menubar { display: none !important; }
+ '';
+ };
+ };
};
})
-
(lib.mkIf cfg.brave.enable {
home.packages = [ pkgs.brave ];
})
diff --git a/hm/soft/czkawka-v11.nix b/hm/soft/czkawka-v11.nix
deleted file mode 100644
index 781da99..0000000
--- a/hm/soft/czkawka-v11.nix
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- lib,
- atk,
- cairo,
- callPackage,
- fetchFromGitHub,
- gdk-pixbuf,
- glib,
- gobject-introspection,
- gtk4,
- pango,
- pkg-config,
- rustPlatform,
- stdenv,
- testers,
- wrapGAppsHook4,
- xvfb-run,
- versionCheckHook,
-}:
-
-let
- self = rustPlatform.buildRustPackage {
- pname = "czkawka";
- version = "11.0.1";
-
- src = fetchFromGitHub {
- owner = "qarmin";
- repo = "czkawka";
- tag = self.version;
- hash = "sha256-ke6N3vuKPGolfh6XpAg3/9dtwd09eX53fN2klUwwNwQ=";
- };
-
- cargoHash = "sha256-fx2ZH4I2WYCdMgNoKQuBBEJrPjmgTRPeVM2L+TWYn54=";
-
- nativeBuildInputs = [
- gobject-introspection
- pkg-config
- wrapGAppsHook4
- ];
-
- buildInputs = [
- atk
- cairo
- gdk-pixbuf
- glib
- gtk4
- pango
- ];
-
- nativeCheckInputs = [ xvfb-run ];
-
- strictDeps = true;
-
- doCheck = stdenv.hostPlatform.isLinux && (stdenv.hostPlatform == stdenv.buildPlatform);
-
- checkPhase = ''
- runHook preCheck
- xvfb-run cargo test
- runHook postCheck
- '';
-
- postInstall = ''
- install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop
- install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg
- install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg
- install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
- '';
-
- nativeInstallCheckInputs = [ versionCheckHook ];
- versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli";
- doInstallCheck = true;
-
- passthru = {
- tests.version = testers.testVersion {
- package = self;
- command = "czkawka_cli --version";
- };
- # Ensure you have a wrapper.nix in the same folder if using this
- wrapper = callPackage ./wrapper.nix {
- czkawka = self;
- };
- };
-
- meta = {
- homepage = "https://github.com/qarmin/czkawka";
- description = "Simple, fast and easy to use app to remove unnecessary files from your computer";
- changelog = "https://github.com/qarmin/czkawka/raw/${self.version}/Changelog.md";
- license = with lib.licenses; [ mit ];
- mainProgram = "czkawka_gui";
- maintainers = with lib.maintainers; [
- yanganto
- _0x4A6F
- ];
- };
- };
-in
-self
diff --git a/hm/soft/nixcord.nix b/hm/soft/nixcord.nix
index a6b4217..bd43501 100644
--- a/hm/soft/nixcord.nix
+++ b/hm/soft/nixcord.nix
@@ -20,7 +20,7 @@ in
equibop
];
programs.nixcord = {
- enable = true;
+ # enable = true;
discord = {
enable = true;
autoscroll.enable = true;
@@ -28,10 +28,10 @@ in
vencord.enable = false;
equicord.enable = true;
};
- # equibop = {
- # enable = true;
- # autoscroll.enable = true;
- # };
+ equibop = {
+ enable = true;
+ autoscroll.enable = true;
+ };
config = {
themeLinks = [ "https://raw.codeberg.page/AllPurposeMat/Disblock-Origin/DisblockOrigin.theme.css" ];
frameless = true;