feat: Update to latest onepassword syntax

This commit is contained in:
uttarayan21
2024-11-11 13:01:06 +05:30
parent aefef6e7fb
commit 1653613735
2 changed files with 3 additions and 3 deletions

2
flake.lock generated
View File

@@ -1908,7 +1908,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-SxRzNzv1nQdSIWbc1HNmhKBjLz6Oe2IeSfcUA8X3TzY=", "narHash": "sha256-wKTfdouve9p9xwvOWVg68IIdrMLs8NTaSlLqtN8fKUQ=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

@@ -52,10 +52,10 @@ in rec {
"openapikey" ( "openapikey" (
if pkgs.stdenv.isDarwin if pkgs.stdenv.isDarwin
then '' then ''
${pkgs._1password-cli}/bin/op item get 'OpenAI API Token' --fields label='api key' ${pkgs._1password-cli}/bin/op item get 'OpenAI API Token' --fields label='api key' --reveal
'' ''
else '' else ''
/run/wrappers/bin/op item get 'OpenAI API Token' --fields label='api key' /run/wrappers/bin/op item get 'OpenAI API Token' --fields label='api key' --reveal
'' ''
)}''; )}'';
}; };