From cd293b37b814f26f9610b9063870374c7bdad452 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 6 Jun 2025 20:23:20 +0200 Subject: modules/firefox: Drop This is no longer needed as I have migrated my browser to qutebrowser. --- modules/by-name/fi/firefox/extensions.json | 50 ----- modules/by-name/fi/firefox/extensions.json.license | 9 - modules/by-name/fi/firefox/module.nix | 248 --------------------- modules/by-name/fi/firefox/profile.nix | 189 ---------------- .../by-name/fi/firefox/search_engines/default.nix | 113 ---------- .../fi/firefox/search_engines/logos/arch_linux.svg | 1 - .../search_engines/logos/arch_linux.svg.license | 9 - .../fi/firefox/search_engines/logos/brave.svg | 25 --- .../firefox/search_engines/logos/brave.svg.license | 9 - .../search_engines/logos/google_scholar.ico | Bin 3871 -> 0 bytes .../logos/google_scholar.ico.license | 9 - .../fi/firefox/search_engines/logos/rust_std.svg | 47 ---- .../search_engines/logos/rust_std.svg.license | 9 - .../fi/firefox/search_engines/logos/rust_tokio.png | Bin 3551 -> 0 bytes .../search_engines/logos/rust_tokio.png.license | 9 - .../fi/firefox/search_engines/logos/wikipedia.svg | 1 - .../search_engines/logos/wikipedia.svg.license | 9 - modules/by-name/fi/firefox/update_extensions.sh | 22 -- modules/by-name/fi/firefox/userChrome.css | 53 ----- modules/common/default.nix | 15 +- 20 files changed, 6 insertions(+), 821 deletions(-) delete mode 100644 modules/by-name/fi/firefox/extensions.json delete mode 100644 modules/by-name/fi/firefox/extensions.json.license delete mode 100644 modules/by-name/fi/firefox/module.nix delete mode 100644 modules/by-name/fi/firefox/profile.nix delete mode 100644 modules/by-name/fi/firefox/search_engines/default.nix delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg.license delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/brave.svg delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/brave.svg.license delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico.license delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/rust_std.svg delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/rust_std.svg.license delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png.license delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg delete mode 100644 modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg.license delete mode 100755 modules/by-name/fi/firefox/update_extensions.sh delete mode 100644 modules/by-name/fi/firefox/userChrome.css (limited to 'modules') diff --git a/modules/by-name/fi/firefox/extensions.json b/modules/by-name/fi/firefox/extensions.json deleted file mode 100644 index cc098acd..00000000 --- a/modules/by-name/fi/firefox/extensions.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "darkreader": { - "addonId": "addon@darkreader.org", - "default_area": "navbar", - "pname": "darkreader", - "sha256": "sha256:23c94085063aa6b57fae40ca9111ab049fffca5476c29e9990db3aa1a3fe1f10", - "url": "https://addons.mozilla.org/firefox/downloads/file/4488139/darkreader-4.9.106.xpi", - "version": "4.9.106" - }, - "keepassxc-browser": { - "addonId": "keepassxc-browser@keepassxc.org", - "default_area": "navbar", - "pname": "keepassxc-browser", - "sha256": "sha256:7629ee8fe6a8bace5d0f12c3aef41803c2ab01407a22ad8803633992a6c4eda2", - "url": "https://addons.mozilla.org/firefox/downloads/file/4477789/keepassxc_browser-1.9.8.xpi", - "version": "1.9.8" - }, - "torproject-snowflake": { - "addonId": "{b11bea1f-a888-4332-8d8a-cec2be7d24b9}", - "default_area": "navbar", - "pname": "torproject-snowflake", - "sha256": "sha256:615c0d570f41e721a91fc4f334377a61732171b65eb1a4429d78681e85bc8878", - "url": "https://addons.mozilla.org/firefox/downloads/file/4458115/torproject_snowflake-0.9.3.xpi", - "version": "0.9.3" - }, - "tridactyl-vim": { - "addonId": "tridactyl.vim@cmcaine.co.uk", - "default_area": "menupanel", - "pname": "tridactyl-vim", - "sha256": "sha256:807925f26aab56ab19a28e663ade73743a033e3b77aa09edd3f77bf92e5fb36e", - "url": "https://addons.mozilla.org/firefox/downloads/file/4405615/tridactyl_vim-1.24.2.xpi", - "version": "1.24.2" - }, - "ublock-origin": { - "addonId": "uBlock0@raymondhill.net", - "default_area": "menupanel", - "pname": "ublock-origin", - "sha256": "sha256:b9e1c868bd1ac1defcabf2e01776d1a90effba34b07fe6a21350d45f022e0e9f", - "url": "https://addons.mozilla.org/firefox/downloads/file/4492375/ublock_origin-1.64.0.xpi", - "version": "1.64.0" - }, - "vhack-libredirect": { - "addonId": "vhack-libredirect@addons.vhack.eu", - "default_area": "navbar", - "pname": "vhack-libredirect", - "sha256": "sha256:08ccfd4b32ba15b357252208da7f383099ed5aefb9e92ffb5b9ae33f9146caf6", - "url": "https://addons.mozilla.org/firefox/downloads/file/4427811/vhack_libredirect-3.0.2.xpi", - "version": "3.0.2" - } -} diff --git a/modules/by-name/fi/firefox/extensions.json.license b/modules/by-name/fi/firefox/extensions.json.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/extensions.json.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/module.nix b/modules/by-name/fi/firefox/module.nix deleted file mode 100644 index b5c1ff9a..00000000 --- a/modules/by-name/fi/firefox/module.nix +++ /dev/null @@ -1,248 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see . -{ - lib, - config, - pkgs, - modules, - ... -}: let - cfg = config.soispha.programs.firefox; - - mkAllowedExtension = extension: - lib.attrsets.nameValuePair extension.addonId { - installation_mode = "normal_installed"; - updates_disabled = true; - inherit (extension) default_area; - install_url = "file://${builtins.fetchurl { - inherit - (extension) - url - sha256 - ; - }}"; - }; - - allowedExtensions = - builtins.listToAttrs - (builtins.map mkAllowedExtension (builtins.attrValues - cfg.extensions)); - - mkBlockedExtension = id: - lib.attrsets.nameValuePair id { - install_mode = "blocked"; - }; - blockedExtensions = builtins.listToAttrs (builtins.map mkBlockedExtension [ - # these are the default search engines - "addons-search-detection@mozilla.com" - "amazon@search.mozilla.org" - "bing@search.mozilla.org" - "ddg@search.mozilla.org" - "google@search.mozilla.org" - "wikipedia@search.mozilla.org" - ]); - - mkProfile = import ./profile.nix {inherit config pkgs;}; -in { - options.soispha.programs.firefox = { - enable = lib.mkEnableOption "firefox"; - - profiles = lib.mkOption { - type = lib.types.attrsOf (lib.types.submodule { - options = { - id = lib.mkOption { - type = lib.types.int; - description = "The id of this profile."; - }; - name = lib.mkOption { - type = lib.types.str; - description = "The name of this profile"; - }; - }; - }); - description = "A list of profies to create besides the default `default` profile."; - default = {}; - apply = value: - lib.attrsets.mapAttrs' (name: value: lib.attrsets.nameValuePair name (mkProfile value)) - value; - }; - - extensions = lib.mkOption { - type = lib.types.attrsOf ( - lib.types.submodule { - options = { - addonId = lib.mkOption { - type = lib.types.str; - example = "addon@darkreader.org"; - description = "The addon id of this extension"; - }; - default_area = lib.mkOption { - type = lib.types.enum ["navbar" "menupanel"]; - example = "navbar"; - description = '' - Where to put this extension by default. - `navbar` means into the top-left bar as icon. - `menupanel` means hidden behind a “all extensions” button. - ''; - }; - pname = lib.mkOption { - type = lib.types.str; - example = "darkreader"; - description = "The package name of this extension"; - }; - sha256 = lib.mkOption { - type = lib.types.str; - example = "sha256:f565b2263a71626a0310380915b7aef90be8cc6fe16ea43ac1a0846efedc2e4c"; - description = "The fetchurl copatible hash of this extension"; - }; - url = lib.mkOption { - type = lib.types.str; - example = "https://addons.mozilla.org/firefox/downloads/file/4439735/darkreader-4.9.103.xpi"; - description = "The download url of this extension."; - }; - version = lib.mkOption { - type = lib.types.str; - example = "4.9.103"; - description = "The version of this extension"; - }; - }; - } - ); - - default = builtins.fromJSON (builtins.readFile ./extensions.json); - - description = '' - A list of the extensions that should be installed. - You can use a tool like `generate_extensions` to generate this config. - ''; - }; - }; - - config = lib.mkIf cfg.enable { - programs.firefox = { - enable = true; - preferencesStatus = "locked"; - - languagePacks = ["en-CA" "de" "sv-SE"]; - - nativeMessagingHosts.packages = [ - pkgs.tridactyl-native - pkgs.keepassxc - ]; - - # NOTE: See https://mozilla.github.io/policy-templates for documentation <2023-10-21> - policies = { - # NixOS manages this already - DisableAppUpdate = true; - - DisableFirefoxAccounts = true; - DisableFirefoxScreenshots = true; - - # KeepassXC does this for me - DisableMasterPasswordCreation = true; - - # I use a self-hosted services for that - DisablePocket = true; - - # I don't want to lose my data - DisableProfileRefresh = true; - - DisableDeveloperTools = false; - - DisplayBookmarksToolbar = "newtab"; - DisplayMenuBar = "default-off"; - - DNSOverHTTPS = { - Enabled = true; - Locked = false; - }; - # The concept of a "default browser" does not apply to my NixOS config - DontCheckDefaultBrowser = true; - - ExtensionSettings = - { - "*" = { - # Blocking the extension install here, also blocks the 'about:debugging' page - - # blocked_install_message = '' - # You can't install a extension manually, - # please specify it in your NixOS configuration - # ''; - installation_mode = "allowed"; - }; - } - // allowedExtensions - // blockedExtensions; - RequestedLocales = config.programs.firefox.languagePacks; - - ExtensionUpdate = false; - - HardwareAcceleration = true; - - # KeepassXC and such things - OfferToSaveLogins = false; - PasswordManagerEnabled = false; - - PDFjs = { - Enabled = true; - # Don't honor documents right to be un-copy-able - EnablePermissions = false; - }; - - SearchBar = "unified"; - }; - - # Beware, that we already set them per-profile in the home-manager config. - preferences = {}; - }; - - home-manager.users.soispha = { - imports = [ - modules.arkenfox-nixos.hmModules.arkenfox - ]; - - home.sessionVariables = { - # Improve touch input and make scrolling smother - MOZ_USE_XINPUT2 = "1"; - - # Tell Firefox to use Wayland - MOZ_ENABLE_WAYLAND = 1; - - # Tell GTK to use portals - GTK_USE_PORTAL = 1; - - BROWSER = "firefox"; - }; - - programs.firefox = { - enable = true; - arkenfox = { - enable = true; - version = "133.0"; - }; - - # We use the NixOS module to provide us a package. - # HACK: Extract the package from the system-path to get a version for - # arkenfox-nixos to compare to. <2025-04-02> - package = lib.lists.findSingle (x: builtins.hasAttr "pname" x && x.pname == "firefox") "none" "multiple" config.environment.systemPackages; - - profiles = - { - default = mkProfile { - isDefault = true; - id = 0; - name = "default"; - }; - } - // cfg.profiles; - }; - }; - }; -} diff --git a/modules/by-name/fi/firefox/profile.nix b/modules/by-name/fi/firefox/profile.nix deleted file mode 100644 index d82bfafa..00000000 --- a/modules/by-name/fi/firefox/profile.nix +++ /dev/null @@ -1,189 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see . -{ - config, - pkgs, -}: preConfig: ({ - userChrome = ./userChrome.css; - - bookmarks = { - force = true; - settings = []; - }; - - search = { - default = "brave-search"; - privateDefault = "brave-search"; - force = true; - engines = import ./search_engines {inherit pkgs;}; - - order = [ - # DEFAULT - "brave-search" - - # NIX - "nix-packages" - "nix-options" - "nixpkgs-issues" - "homemanager-options" - "nixos-wiki" - "nixpkgs-pull-request-tracker" - - # RUST - "rust-std" - "rust-tokio" - - # OTHER - "google-scholar" - "wikipedia" - "arch-wiki" - ]; - }; - - settings = { - "browser.download.dir" = "${config.home-manager.users.soispha.xdg.userDirs.download}"; - # "browser.download.useDownloadDir" = true; - # "browser.download.folderList" = 2; - - # QoL - "general.autoScroll" = false; - "browser.tabs.insertAfterCurrent" = true; - "browser.tabs.loadInBackground" = true; - "browser.ctrlTab.recentlyUsedOrder" = false; - "browser.search.widget.inNavBar" = true; - "findbar.highlightAll" = true; - - "devtools.toolbox.host" = "right"; - "devtools.toolsidebar-width.inspector" = 700; - - # Keep translations useful - "browser.translations.automaticallyPopup" = true; - "browser.translations.neverTranslateLanguages" = "de"; - - # Improve Tab UI - "browser.tabs.inTitlebar" = 1; - "browser.toolbars.bookmarks.visibility" = "never"; - "browser.places.importBookmarksHTML" = true; - - # Theme - "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; - "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org"; - - # disable updates (pretty pointless with nix) - "extensions.update.autoUpdateDefault" = false; - "extensions.update.enabled" = false; - "app.update.channel" = "default"; - "browser.shell.checkDefaultBrowser" = false; - - # Allow my custom css - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - }; - - arkenfox = { - enable = true; - "0000".enable = true; - "0100" = { - enable = true; - "0102"."browser.startup.page".value = 3; - "0103"."browser.startup.homepage".value = "file:///home/dt/home.html"; - "0104"."browser.newtabpage.enabled".value = true; - }; - "0200" = { - enable = true; - }; - "0300" = { - enable = true; - }; - "0400" = { - enable = false; - }; - "0600" = { - enable = true; - }; - "0700" = { - enable = true; - "0710"."network.trr.mode" = { - enable = true; - value = 3; - }; - }; - "0800" = { - enable = true; - }; - "0900" = { - enable = true; - }; - "1000" = { - enable = true; - "1001"."browser.cache.disk.enable".value = true; - "1003"."browser.sessionstore.privacy_level".value = 0; - }; - "1200" = { - enable = true; - "1241"."security.mixed_content.block_display_content".enable = true; - }; - "1600" = { - enable = true; - }; - "1700" = { - enable = true; - }; - "2000" = { - enable = true; - }; - "2400" = { - enable = true; - }; - "2600" = { - enable = true; - "2603" = { - "browser.download.start_downloads_in_tmp_dir".value = false; - "browser.helperApps.deleteTempFileOnExit".value = false; - }; - "2615"."permissions.default.shortcuts" = { - value = 2; - enable = true; - }; - }; - "2700" = { - enable = true; - }; - "2800" = { - enable = false; - "2810"."privacy.sanitize.sanitizeOnShutdown".value = false; - }; - "4000" = { - enable = true; - }; - "4500" = { - enable = true; - }; - "5000" = { - enable = true; - "5003"."signon.rememberSignons" = { - enable = true; - value = false; - }; - }; - "6000" = { - enable = true; - }; - "7000" = { - enable = true; - }; - "8000" = { - enable = true; - }; - "9000" = { - enable = true; - }; - }; - } - // preConfig) diff --git a/modules/by-name/fi/firefox/search_engines/default.nix b/modules/by-name/fi/firefox/search_engines/default.nix deleted file mode 100644 index f36be0a7..00000000 --- a/modules/by-name/fi/firefox/search_engines/default.nix +++ /dev/null @@ -1,113 +0,0 @@ -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see . -{pkgs, ...}: { - # DEFAULT - brave-search = { - name = "Brave Search"; - urls = [{template = "https://search.brave.com/search?q={searchTerms}";}]; - icon = ./logos/brave.svg; - definedAliases = ["@bs"]; - }; - - # NIX - nix-packages = { - name = "Nix packages"; - urls = [{template = "https://search.nixos.org/packages?type=packages&query={searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@np"]; - }; - - nix-functions = { - name = "Nix functions"; - urls = [{template = "https://noogle.dev/q?term={searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@ng"]; - }; - - nixos-options = { - name = "NixOS options"; - urls = [{template = "https://search.nixos.org/options?type=options&query={searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@no"]; - }; - homemanager-options = { - name = "Home-Manager options"; - urls = [{template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@nh"]; - }; - - nixpkgs-issues = { - name = "Nixpkgs issues"; - urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@ni"]; - }; - nixpkgs-pull-requests = { - name = "Nixpkgs pull requests"; - urls = [{template = "https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+{searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@nr"]; - }; - - nixpkgs-pull-requests-tracker = { - name = "Nixpkgs pull requests tracker"; - urls = [{template = "https://nixpk.gs/pr-tracker.html?pr={searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@nt"]; - }; - nixos-wiki = { - name = "NixOS Wiki"; - urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["@nw"]; - }; - - # RUST - rust-std = { - name = "Rust std"; - urls = [{template = "https://doc.rust-lang.org/std/?search={searchTerms}";}]; - icon = ./logos/rust_std.svg; - definedAliases = ["@rs"]; - }; - rust-tokio = { - name = "Rust tokio"; - urls = [{template = "https://docs.rs/tokio/latest/tokio/index.html?search={searchTerms}";}]; - icon = ./logos/rust_tokio.png; - definedAliases = ["@rt"]; - }; - - # OTHER - google-scholar = { - name = "Google Scholar"; - urls = [{template = "https://scholar.google.com/scholar?hl=en&q={searchTerms}";}]; - icon = ./logos/google_scholar.ico; - definedAliases = ["@gs"]; - }; - wikipedia = { - name = "Wikipedia"; - urls = [{template = "https://en.wikipedia.org/wiki/{searchTerms}";}]; - icon = ./logos/wikipedia.svg; - definedAliases = ["@wp"]; - }; - arch-wiki = { - name = "Arch Wiki"; - urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}]; - icon = ./logos/arch_linux.svg; - definedAliases = ["@aw"]; - }; - - "wikipedia".metaData.hidden = true; - "ddg".metaData.hidden = true; - "bing".metaData.hidden = true; - "google".metaData.hidden = true; - "Amazon.de".metaData.hidden = true; - "ebay".metaData.hidden = true; -} diff --git a/modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg b/modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg deleted file mode 100644 index 949b5c5f..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg.license b/modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/arch_linux.svg.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/search_engines/logos/brave.svg b/modules/by-name/fi/firefox/search_engines/logos/brave.svg deleted file mode 100644 index 09dd2e42..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/brave.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/by-name/fi/firefox/search_engines/logos/brave.svg.license b/modules/by-name/fi/firefox/search_engines/logos/brave.svg.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/brave.svg.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico b/modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico deleted file mode 100644 index 85d0c664..00000000 Binary files a/modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico and /dev/null differ diff --git a/modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico.license b/modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/google_scholar.ico.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/search_engines/logos/rust_std.svg b/modules/by-name/fi/firefox/search_engines/logos/rust_std.svg deleted file mode 100644 index 0091b5a8..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/rust_std.svg +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/by-name/fi/firefox/search_engines/logos/rust_std.svg.license b/modules/by-name/fi/firefox/search_engines/logos/rust_std.svg.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/rust_std.svg.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png b/modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png deleted file mode 100644 index f1de55ff..00000000 Binary files a/modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png and /dev/null differ diff --git a/modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png.license b/modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/rust_tokio.png.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg b/modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg deleted file mode 100644 index dc32f984..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg +++ /dev/null @@ -1 +0,0 @@ -]>Wikipedia logo version 2 \ No newline at end of file diff --git a/modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg.license b/modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg.license deleted file mode 100644 index eae6a84c..00000000 --- a/modules/by-name/fi/firefox/search_engines/logos/wikipedia.svg.license +++ /dev/null @@ -1,9 +0,0 @@ -nixos-config - My current NixOS configuration - -Copyright (C) 2025 Benedikt Peetz -SPDX-License-Identifier: GPL-3.0-or-later - -This file is part of my nixos-config. - -You should have received a copy of the License along with this program. -If not, see . diff --git a/modules/by-name/fi/firefox/update_extensions.sh b/modules/by-name/fi/firefox/update_extensions.sh deleted file mode 100755 index 588a7530..00000000 --- a/modules/by-name/fi/firefox/update_extensions.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env sh - -# nixos-config - My current NixOS configuration -# -# Copyright (C) 2025 Benedikt Peetz -# SPDX-License-Identifier: GPL-3.0-or-later -# -# This file is part of my nixos-config. -# -# You should have received a copy of the License along with this program. -# If not, see . - -# The `generate_extensions` binary is provided in the devshell. - -generate_extensions \ - darkreader:navbar \ - keepassxc-browser:navbar \ - vhack-libredirect:navbar \ - torproject-snowflake:navbar \ - tridactyl-vim:menupanel \ - ublock-origin:menupanel \ - >"$(dirname "$0")"/extensions.json diff --git a/modules/by-name/fi/firefox/userChrome.css b/modules/by-name/fi/firefox/userChrome.css deleted file mode 100644 index 6e0d705d..00000000 --- a/modules/by-name/fi/firefox/userChrome.css +++ /dev/null @@ -1,53 +0,0 @@ -/* - * nixos-config - My current NixOS configuration - * - * Copyright (C) 2025 Benedikt Peetz - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This file is part of my nixos-config. - * - * You should have received a copy of the License along with this program. - * If not, see . - */ - -/* thickness of tab when you have too many open tabs */ -.tabbrowser-tab:not([pinned="true"]) { - min-width: 10px !important; - min-height: 10px !important; -} - -/* tab height -#TabsToolbar .tabbrowser-tabs { -min-height: 10px !important; -} -*/ - -/* -.tabbrowser-tab {min-width: 016px !important;} -.tabbrowser-tab {clip-width: 016px !important;} -*/ - -/* the + button that opens new tabs */ -#TabsToolbar .tabs-newtab-button { - margin-left: 10px !important; - height: Auto !important; -} - -#main-window[privatebrowsingmode="temporary"] #navigator-toolbox { - background-color: #c40944 !important; -} - -/* close button inside a tab */ -.tab-close-button * { - width: 10px !important; - height: 10px !important; -} - -/* bookmark toolbar */ -#personal-bookmarks .bookmark-item > .toolbarbutton-text { - font-size: 10pt !important; -} -#personal-bookmarks .bookmark-item > .toolbarbutton-icon { - height: 12px !important; - width: 12px !important; -} diff --git a/modules/common/default.nix b/modules/common/default.nix index aadb22bd..4ac4f6c7 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -168,8 +168,6 @@ "~/.local/share" "~/.local/.Trash-1000" - "~/.mozilla/firefox" - "~/media" "~/school" "~/repos" @@ -231,12 +229,12 @@ title = "*"; action = "ssd"; } - # This remove the focus border around Firefox (which is useful because the Firefox is nearly always in its own tag.) - { - app-id = "firefox"; - title = "*"; - action = "csd"; - } + # # This remove the focus border around Firefox (which is useful because the Firefox is nearly always in its own tag.) + # { + # app-id = "firefox"; + # title = "*"; + # action = "csd"; + # } ]; generalSettings = { # background @@ -269,7 +267,6 @@ ]; }; }; - firefox.enable = true; mpv.enable = true; steam.enable = true; ssh.enable = true; -- cgit 1.4.1