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
|
||||
|
||||
|
||||
#+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
|
||||
|
||||
** NixOS
|
||||
|
|
@ -7540,6 +7618,7 @@ I used to build the firefox addon =bypass-paywalls-clean= myself here, but the m
|
|||
EnableTrackingProtection = true;
|
||||
};
|
||||
profiles.default = {
|
||||
id = 0;
|
||||
isDefault = true;
|
||||
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||
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
|
||||
ublock-origin
|
||||
reddit-enhancement-suite
|
||||
pushbullet
|
||||
sponsorblock
|
||||
web-archives
|
||||
single-file
|
||||
|
|
@ -8061,25 +8139,45 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
|||
|
||||
**** Work
|
||||
|
||||
#+begin_src nix :tangle profiles/optional/home/work.nix
|
||||
#+begin_src nix :tangle profiles/optional/home/work.nix :noweb yes
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
teams-for-linux
|
||||
google-chrome
|
||||
];
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
teams-for-linux
|
||||
google-chrome
|
||||
thunderbird
|
||||
ansible
|
||||
dig
|
||||
];
|
||||
|
||||
programs.ssh = {
|
||||
matchBlocks = {
|
||||
"*.vbc.ac.at" = {
|
||||
user = "dc_adm_schwarzaeugl";
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.ssh = {
|
||||
matchBlocks = {
|
||||
"*.vbc.ac.at" = {
|
||||
user = "dc_adm_schwarzaeugl";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
programs.firefox = {
|
||||
profiles = {
|
||||
dc_adm = {
|
||||
id = 1;
|
||||
<<firefoxprofile>>
|
||||
};
|
||||
cl_adm = {
|
||||
id = 2;
|
||||
<<firefoxprofile>>
|
||||
};
|
||||
ws_adm = {
|
||||
id = 3;
|
||||
<<firefoxprofile>>
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#+end_src
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue