mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add adm profiles to firefox
This commit is contained in:
parent
2357d72870
commit
053cc25ab9
3 changed files with 350 additions and 16 deletions
|
|
@ -265,6 +265,84 @@ I also enable the extra socket here for ssh agent forwarding. But I have not ful
|
||||||
#+begin_src nix :tangle no :noweb-ref gpgagent
|
#+begin_src nix :tangle no :noweb-ref gpgagent
|
||||||
|
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** firefox profile
|
||||||
|
|
||||||
|
#+begin_src nix :tangle no :noweb-ref firefoxprofile
|
||||||
|
|
||||||
|
isDefault = false;
|
||||||
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
tridactyl
|
||||||
|
browserpass
|
||||||
|
clearurls
|
||||||
|
darkreader
|
||||||
|
enhancer-for-youtube
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
translate-web-pages
|
||||||
|
ublock-origin
|
||||||
|
reddit-enhancement-suite
|
||||||
|
sponsorblock
|
||||||
|
web-archives
|
||||||
|
single-file
|
||||||
|
widegithub
|
||||||
|
enhanced-github
|
||||||
|
unpaywall
|
||||||
|
don-t-fuck-with-paste
|
||||||
|
plasma-integration
|
||||||
|
];
|
||||||
|
|
||||||
|
search.engines = {
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||||
|
}];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Home Manager Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://home-manager-options.extranix.com/";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@hm" "@ho" "@hmo" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Google".metaData.alias = "@g";
|
||||||
|
};
|
||||||
|
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** NixOS
|
** NixOS
|
||||||
|
|
@ -7540,6 +7618,7 @@ I used to build the firefox addon =bypass-paywalls-clean= myself here, but the m
|
||||||
EnableTrackingProtection = true;
|
EnableTrackingProtection = true;
|
||||||
};
|
};
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
|
@ -7552,7 +7631,6 @@ I used to build the firefox addon =bypass-paywalls-clean= myself here, but the m
|
||||||
translate-web-pages
|
translate-web-pages
|
||||||
ublock-origin
|
ublock-origin
|
||||||
reddit-enhancement-suite
|
reddit-enhancement-suite
|
||||||
pushbullet
|
|
||||||
sponsorblock
|
sponsorblock
|
||||||
web-archives
|
web-archives
|
||||||
single-file
|
single-file
|
||||||
|
|
@ -8061,7 +8139,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
|
|
||||||
**** Work
|
**** Work
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/optional/home/work.nix
|
#+begin_src nix :tangle profiles/optional/home/work.nix :noweb yes
|
||||||
|
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
|
@ -8069,6 +8147,9 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
teams-for-linux
|
teams-for-linux
|
||||||
google-chrome
|
google-chrome
|
||||||
|
thunderbird
|
||||||
|
ansible
|
||||||
|
dig
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
|
|
@ -8079,6 +8160,23 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
profiles = {
|
||||||
|
dc_adm = {
|
||||||
|
id = 1;
|
||||||
|
<<firefoxprofile>>
|
||||||
|
};
|
||||||
|
cl_adm = {
|
||||||
|
id = 2;
|
||||||
|
<<firefoxprofile>>
|
||||||
|
};
|
||||||
|
ws_adm = {
|
||||||
|
id = 3;
|
||||||
|
<<firefoxprofile>>
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
EnableTrackingProtection = true;
|
EnableTrackingProtection = true;
|
||||||
};
|
};
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
|
@ -33,7 +34,6 @@
|
||||||
translate-web-pages
|
translate-web-pages
|
||||||
ublock-origin
|
ublock-origin
|
||||||
reddit-enhancement-suite
|
reddit-enhancement-suite
|
||||||
pushbullet
|
|
||||||
sponsorblock
|
sponsorblock
|
||||||
web-archives
|
web-archives
|
||||||
single-file
|
single-file
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
teams-for-linux
|
teams-for-linux
|
||||||
google-chrome
|
google-chrome
|
||||||
|
thunderbird
|
||||||
|
ansible
|
||||||
|
dig
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
|
|
@ -14,4 +17,237 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
profiles = {
|
||||||
|
dc_adm = {
|
||||||
|
id = 1;
|
||||||
|
|
||||||
|
isDefault = false;
|
||||||
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
tridactyl
|
||||||
|
browserpass
|
||||||
|
clearurls
|
||||||
|
darkreader
|
||||||
|
enhancer-for-youtube
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
translate-web-pages
|
||||||
|
ublock-origin
|
||||||
|
reddit-enhancement-suite
|
||||||
|
sponsorblock
|
||||||
|
web-archives
|
||||||
|
single-file
|
||||||
|
widegithub
|
||||||
|
enhanced-github
|
||||||
|
unpaywall
|
||||||
|
don-t-fuck-with-paste
|
||||||
|
plasma-integration
|
||||||
|
];
|
||||||
|
|
||||||
|
search.engines = {
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||||
|
}];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Home Manager Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://home-manager-options.extranix.com/";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@hm" "@ho" "@hmo" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Google".metaData.alias = "@g";
|
||||||
|
};
|
||||||
|
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
||||||
|
|
||||||
|
};
|
||||||
|
cl_adm = {
|
||||||
|
id = 2;
|
||||||
|
|
||||||
|
isDefault = false;
|
||||||
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
tridactyl
|
||||||
|
browserpass
|
||||||
|
clearurls
|
||||||
|
darkreader
|
||||||
|
enhancer-for-youtube
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
translate-web-pages
|
||||||
|
ublock-origin
|
||||||
|
reddit-enhancement-suite
|
||||||
|
sponsorblock
|
||||||
|
web-archives
|
||||||
|
single-file
|
||||||
|
widegithub
|
||||||
|
enhanced-github
|
||||||
|
unpaywall
|
||||||
|
don-t-fuck-with-paste
|
||||||
|
plasma-integration
|
||||||
|
];
|
||||||
|
|
||||||
|
search.engines = {
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||||
|
}];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Home Manager Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://home-manager-options.extranix.com/";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@hm" "@ho" "@hmo" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Google".metaData.alias = "@g";
|
||||||
|
};
|
||||||
|
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
||||||
|
|
||||||
|
};
|
||||||
|
ws_adm = {
|
||||||
|
id = 3;
|
||||||
|
|
||||||
|
isDefault = false;
|
||||||
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
tridactyl
|
||||||
|
browserpass
|
||||||
|
clearurls
|
||||||
|
darkreader
|
||||||
|
enhancer-for-youtube
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
translate-web-pages
|
||||||
|
ublock-origin
|
||||||
|
reddit-enhancement-suite
|
||||||
|
sponsorblock
|
||||||
|
web-archives
|
||||||
|
single-file
|
||||||
|
widegithub
|
||||||
|
enhanced-github
|
||||||
|
unpaywall
|
||||||
|
don-t-fuck-with-paste
|
||||||
|
plasma-integration
|
||||||
|
];
|
||||||
|
|
||||||
|
search.engines = {
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||||
|
}];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Home Manager Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://home-manager-options.extranix.com/";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@hm" "@ho" "@hmo" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Google".metaData.alias = "@g";
|
||||||
|
};
|
||||||
|
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue