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,6 +1,11 @@
{pkgs, nurpkgs, ...}@args:
{nurpkgs, lib, ...}@args:
let
rycee-addons = with nurpkgs.repos.rycee.firefox-addons; [
rycee-addons = nurpkgs.repos.rycee.firefox-addons;
own-addons = import ./derivations.nix args;
in
{
default = lib.concatLists [
(with rycee-addons; [
ublock-origin
clearurls
cookie-autodelete
@ -11,12 +16,17 @@ rycee-addons = with nurpkgs.repos.rycee.firefox-addons; [
umatrix
violentmonkey
boring-rss
# bypass-paywalls-clean
];
own-addons = with import ./derivations.nix args; [
# rycee.bypass-paywalls-clean
])
(with own-addons; [
http-version-indicator
indicatetls
sixindicator
];
in
rycee-addons ++ own-addons
])
];
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 = {
profiles = {
default = {
id = 0;
isDefault = true;
settings = {
"browser.aboutConfig.showWarning" = false;
"browser.toolbars.bookmarks.visibility" = "always";
};
extensions = import ./firefox-addons (args // {inherit nurpkgs; });
extensions = firefox-addons.default; # TODO: recursive
};
sue = {
id = 1;
extensions = firefox-addons.sue;
};
};
};