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

2
flake.lock generated
View File

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

View File

@@ -398,9 +398,15 @@ in rec {
else null;
apikey =
pkgs.writeShellScriptBin
"openapikey" ''
"openapikey" (
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
/*
lua