feat(sops): add cargo registry token as secret

This commit is contained in:
Mohammad Rafiq 2025-03-25 04:45:56 +08:00
parent c9b321991f
commit fa620983be
No known key found for this signature in database
5 changed files with 21 additions and 12 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, osConfig, ... }:
{
programs.zsh = {
enable = true;
@ -12,6 +12,8 @@
''
# Bind CTRL+Backspace to delete whole word
bindkey '^H' backward-kill-word
# Set Cargo Registry Token
export CARGO_REGISTRY_TOKEN="$(cat ${osConfig.sops.secrets.cargo_api_key.path})"
'';
# TODO: Look into whether we need to add the history attribute
profileExtra = # bash