add firefox profile for work
install extensions depending on firefox profile closes #26
This commit is contained in:
parent
814523bd77
commit
13fcc8e0ee
2 changed files with 44 additions and 27 deletions
|
@ -1,6 +1,11 @@
|
||||||
{pkgs, nurpkgs, ...}@args:
|
{nurpkgs, lib, ...}@args:
|
||||||
let
|
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
|
ublock-origin
|
||||||
clearurls
|
clearurls
|
||||||
cookie-autodelete
|
cookie-autodelete
|
||||||
|
@ -11,12 +16,17 @@ rycee-addons = with nurpkgs.repos.rycee.firefox-addons; [
|
||||||
umatrix
|
umatrix
|
||||||
violentmonkey
|
violentmonkey
|
||||||
boring-rss
|
boring-rss
|
||||||
# bypass-paywalls-clean
|
# rycee.bypass-paywalls-clean
|
||||||
];
|
])
|
||||||
own-addons = with import ./derivations.nix args; [
|
(with own-addons; [
|
||||||
http-version-indicator
|
http-version-indicator
|
||||||
indicatetls
|
indicatetls
|
||||||
sixindicator
|
sixindicator
|
||||||
];
|
])
|
||||||
in
|
];
|
||||||
rycee-addons ++ own-addons
|
sue = with rycee-addons; [
|
||||||
|
ublock-origin
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
keepassxc-browser
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
11
home.nix
11
home.nix
|
@ -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 = {
|
||||||
|
default = {
|
||||||
id = 0;
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
settings = {
|
settings = {
|
||||||
"browser.aboutConfig.showWarning" = false;
|
"browser.aboutConfig.showWarning" = false;
|
||||||
"browser.toolbars.bookmarks.visibility" = "always";
|
"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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue