From b82caec734a94ac96ec5b14ae422f81d69c06cba Mon Sep 17 00:00:00 2001 From: caem Date: Fri, 24 Jan 2025 22:13:40 +0100 Subject: [PATCH] sdlkfweoiru --- modules/home/caem/desktop/gnome/default.nix | 2 +- modules/nixos/desktop/gnome/default.nix | 1 - modules/nixos/multimedia/web/default.nix | 5 +++ modules/nixos/multimedia/web/firefox.nix | 43 +++++++++++++++++++++ 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 modules/nixos/multimedia/web/default.nix create mode 100644 modules/nixos/multimedia/web/firefox.nix diff --git a/modules/home/caem/desktop/gnome/default.nix b/modules/home/caem/desktop/gnome/default.nix index 7b7b5fa..163d021 100644 --- a/modules/home/caem/desktop/gnome/default.nix +++ b/modules/home/caem/desktop/gnome/default.nix @@ -32,9 +32,9 @@ in{ quick-settings-tweaker.extensionUuid ]; favorite-apps = [ + "firefox-esr.desktop" "com.mitchellh.ghostty.desktop" "org.gnome.Nautilus.desktop" - "firefox-esr.desktop" ]; }; "org/gnome/shell/extensions/just-perfection" = { diff --git a/modules/nixos/desktop/gnome/default.nix b/modules/nixos/desktop/gnome/default.nix index 3622cc1..61ecd06 100644 --- a/modules/nixos/desktop/gnome/default.nix +++ b/modules/nixos/desktop/gnome/default.nix @@ -34,7 +34,6 @@ environment.systemPackages = with pkgs; [ ghostty dconf-editor - firefox-esr ] ++ (with pkgs.gnomeExtensions; [ caffeine accent-directories diff --git a/modules/nixos/multimedia/web/default.nix b/modules/nixos/multimedia/web/default.nix new file mode 100644 index 0000000..e4fb51f --- /dev/null +++ b/modules/nixos/multimedia/web/default.nix @@ -0,0 +1,5 @@ +{ lib, ... }: + +{ + imports = lib.getModuleImports ./.; +} diff --git a/modules/nixos/multimedia/web/firefox.nix b/modules/nixos/multimedia/web/firefox.nix new file mode 100644 index 0000000..737f4dc --- /dev/null +++ b/modules/nixos/multimedia/web/firefox.nix @@ -0,0 +1,43 @@ +{ username, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + tor-browser + ]; + + environment.persistence."/nix/config" = { + users."${username}".directories = [ + ".config/mozilla" + ]; + }; + + programs.firefox = { + enable = true; + package = pkgs.firfox-esr; + policies = { + EnableTrackingProtection = { + Value = true; + Cryptomining = true; + Fingerprinting = true; + EmailTracking = true; + }; + DisableTelemetry = true; + DisablePocket = true; + DisableFirefoxStudies = true; + DisableFirefoxAccounts = false; + DisableAccounts = false; + DontCheckDefaultBrowser = true; + OverrideFirstRunPage = ""; + OverridePostUpdatePage = ""; + NoDefaultBookmarks = true; + Cookies = { + Behaviour = "reject-foreign"; + BehaviourPrivateBrowsing = "reject-foreign"; + }; + + SearchEngines = { # ESR only + Remove = [ "Bing" "Google" "DuckDuckGo" "Wikipedia (en)" ]; + }; + }; + }; +}