add firefox profile for work

install extensions depending on firefox profile
closes #26
This commit is contained in:
Pim Kunis 2023-10-01 11:22:23 +02:00
parent 814523bd77
commit 13fcc8e0ee
2 changed files with 44 additions and 27 deletions

View file

@ -1,22 +1,32 @@
{pkgs, nurpkgs, ...}@args: {nurpkgs, lib, ...}@args:
let let
rycee-addons = with nurpkgs.repos.rycee.firefox-addons; [ rycee-addons = nurpkgs.repos.rycee.firefox-addons;
ublock-origin own-addons = import ./derivations.nix args;
clearurls
cookie-autodelete
istilldontcareaboutcookies
keepassxc-browser
redirector
ublacklist
umatrix
violentmonkey
boring-rss
# bypass-paywalls-clean
];
own-addons = with import ./derivations.nix args; [
http-version-indicator
indicatetls
sixindicator
];
in in
rycee-addons ++ own-addons {
default = lib.concatLists [
(with rycee-addons; [
ublock-origin
clearurls
cookie-autodelete
istilldontcareaboutcookies
keepassxc-browser
redirector
ublacklist
umatrix
violentmonkey
boring-rss
# rycee.bypass-paywalls-clean
])
(with own-addons; [
http-version-indicator
indicatetls
sixindicator
])
];
sue = with rycee-addons; [
ublock-origin
istilldontcareaboutcookies
keepassxc-browser
];
}

View file

@ -1,6 +1,7 @@
{ pkgs, lib, ... }@args: { pkgs, lib, ... }@args:
let let
nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
firefox-addons = import ./firefox-addons (args // {inherit nurpkgs; });
in in
{ {
home = { home = {
@ -55,14 +56,20 @@ in
firefox = { firefox = {
enable = true; enable = true;
profiles.default = { profiles = {
id = 0; default = {
isDefault = true; id = 0;
settings = { isDefault = true;
"browser.aboutConfig.showWarning" = false; settings = {
"browser.toolbars.bookmarks.visibility" = "always"; "browser.aboutConfig.showWarning" = false;
"browser.toolbars.bookmarks.visibility" = "always";
};
extensions = firefox-addons.default; # TODO: recursive
};
sue = {
id = 1;
extensions = firefox-addons.sue;
}; };
extensions = import ./firefox-addons (args // {inherit nurpkgs; });
}; };
}; };