Update Firefox configuration

This commit is contained in:
Oliver Davies 2025-02-13 22:53:24 +00:00
parent ea7c5b1449
commit 3c76aa0936
6 changed files with 125 additions and 12 deletions

View file

@ -79,6 +79,27 @@
"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"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -253,6 +274,42 @@
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1739214665,
"narHash": "sha256-26L8VAu3/1YRxS8MHgBOyOM8xALdo6N0I04PgorE7UM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "64e75cd44acf21c7933d61d7721e812eac1b5a0a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_4",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1739484678,
"narHash": "sha256-UMXcnWnAq/mZ6QULSaPkSsDCa2AcTVyz2lX+d6WBHgk=",
"owner": "nix-community",
"repo": "NUR",
"rev": "dc54e936d513274e1cfa85e8e6aa9f0d7d181299",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"agenix": "agenix",
@ -263,7 +320,8 @@
"nixpkgs": "nixpkgs_3",
"nixpkgs-2405": "nixpkgs-2405",
"nixpkgs-2411": "nixpkgs-2411",
"nixpkgs-master": "nixpkgs-master"
"nixpkgs-master": "nixpkgs-master",
"nur": "nur"
}
},
"systems": {
@ -280,6 +338,27 @@
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733222881,
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
}
},
"root": "root",

View file

@ -18,6 +18,8 @@
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
nur.url = "github:nix-community/NUR";
};
outputs =

View file

@ -2,6 +2,7 @@
{
imports = [
./firefox.nix
./qutebrowser.nix
];

View file

@ -0,0 +1,40 @@
{ pkgs, ... }:
{
programs.firefox = {
enable = true;
languagePacks = [ "en-GB" ];
profiles = {
default = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
bitwarden
darkreader
onetab
tree-style-tab
ublock-origin
vimium
web-developer
];
preConfig = builtins.readFile "${pkgs.arkenfox-userjs}/user.js";
search = {
default = "DuckDuckGo";
force = true;
privateDefault = "DuckDuckGo";
};
settings = {
"browser.search.isUS" = false;
"browser.search.region" = "GB";
"distribution.searchplugins.defaultLocale" = "en-GB";
"general.useragent.locale" = "en-GB";
"intl.accept_languages" = "en-GB, en";
"intl.regional_prefs.use_os_locales" = true;
};
};
};
};
}

View file

@ -71,6 +71,8 @@
};
overlays = [
inputs.nur.overlays.default
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.stable-packages

View file

@ -9,16 +9,5 @@
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-qt;
};
firefox = {
enable = true;
languagePacks = [ "en-GB" ];
preferences = {
"intl.accept_languages" = "en-GB, en";
"intl.regional_prefs.use_os_locales" = true;
};
};
};
}