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
rycee-addons = with nurpkgs.repos.rycee.firefox-addons; [
ublock-origin
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
];
rycee-addons = nurpkgs.repos.rycee.firefox-addons;
own-addons = import ./derivations.nix args;
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:
let
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
{
home = {
@ -55,14 +56,20 @@ in
firefox = {
enable = true;
profiles.default = {
id = 0;
isDefault = true;
settings = {
"browser.aboutConfig.showWarning" = false;
"browser.toolbars.bookmarks.visibility" = "always";
profiles = {
default = {
id = 0;
isDefault = true;
settings = {
"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; });
};
};