feat: add extensions and make it linux + mac compatible for 1pass

This commit is contained in:
uttarayan21
2024-06-24 01:25:08 +05:30
parent 530aff43ed
commit aea55a3118
3 changed files with 19 additions and 13 deletions

View File

@@ -11,23 +11,23 @@
css css
*/ */
'' ''
/* @import url(${pkgs.csshacks}/chrome/toolbars_below_content.css); */ @import url(${pkgs.csshacks}/chrome/toolbars_below_content.css);
/* @import url(${pkgs.csshacks}/chrome/scrollable_menupopups.css); */ @import url(${pkgs.csshacks}/chrome/scrollable_menupopups.css);
/* @import url(${pkgs.csshacks}/chrome/linux_gtk_window_control_patch.css); */ @import url(${pkgs.csshacks}/chrome/linux_gtk_window_control_patch.css);
''; '';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
privacy-badger privacy-badger
tridactyl tridactyl
clearurls
onepassword-password-manager
ublock-origin
i-dont-care-about-cookies
keepa
sponsorblock
]; ];
}; };
nativeMessagingHosts = [pkgs.tridactyl-native]; nativeMessagingHosts = [pkgs.tridactyl-native];
policies = { policies = {
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
};
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
DisablePocket = true; DisablePocket = true;
DisableTelemetry = true; DisableTelemetry = true;

2
flake.lock generated
View File

@@ -1554,7 +1554,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-DX3q8nvddvoz+RCvQ1EgbqCSguq1BaJi7Af0Zbl5xo0=", "narHash": "sha256-De9Z+8u1DusdNczSDkRINldxAgjLy/l+e8KzC53WJ8o=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

@@ -398,9 +398,15 @@ in rec {
else null; else null;
apikey = apikey =
pkgs.writeShellScriptBin pkgs.writeShellScriptBin
"openapikey" '' "openapikey" (
${pkgs._1password}/bin/op item get 'OpenAI API Token' --fields label=credential if pkgs.stdenv.isDarwin
''; then ''
${pkgs._1password}/bin/op item get 'OpenAI API Token' --fields label=credential
''
else ''
/run/wrappers/bin/op item get 'OpenAI API Token' --fields label=credential
''
);
in in
/* /*
lua lua