add anthropic key
This commit is contained in:
parent
e519bcc13b
commit
339b775acf
3 changed files with 21 additions and 2 deletions
|
|
@ -57,6 +57,11 @@ in {
|
||||||
file = ./secrets/webdav.age;
|
file = ./secrets/webdav.age;
|
||||||
owner = "root";
|
owner = "root";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
anthropic-api-key = {
|
||||||
|
file = ./secrets/anthropic-api-key.age;
|
||||||
|
owner = "root";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
|
@ -71,6 +76,8 @@ in {
|
||||||
pkgs.rust-bin.stable.latest.default
|
pkgs.rust-bin.stable.latest.default
|
||||||
pkgs.wget
|
pkgs.wget
|
||||||
|
|
||||||
|
pkgs.claude-code
|
||||||
|
|
||||||
# For docker-compose like setups
|
# For docker-compose like setups
|
||||||
pkgs.arion
|
pkgs.arion
|
||||||
start-arion-run
|
start-arion-run
|
||||||
|
|
@ -95,6 +102,10 @@ in {
|
||||||
environment.pathsToLink = ["/share/zsh"];
|
environment.pathsToLink = ["/share/zsh"];
|
||||||
environment.shells = [pkgs.zsh];
|
environment.shells = [pkgs.zsh];
|
||||||
|
|
||||||
|
environment.etc."profile.d/anthropic.sh".text = ''
|
||||||
|
export ANTHROPIC_API_KEY=$(cat ${config.age.secrets.anthropic-api-key.path})
|
||||||
|
'';
|
||||||
|
|
||||||
environment.enableAllTerminfo = true;
|
environment.enableAllTerminfo = true;
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
|
||||||
5
nixos/secrets/anthropic-api-key.age
Normal file
5
nixos/secrets/anthropic-api-key.age
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 NFD/vg rY+eiWOLOhCGzqWb4k9jNLU6aQ+PM0GNXTRTM4LfyQg
|
||||||
|
0Ekk88iG8ktnvVPwFW5EOrNN+UDxFmqeodz0SGCganU
|
||||||
|
--- WQ0Q25GI8bmYzB8YkFuJV6wuSKlv+waIWU2aw8A/OF0
|
||||||
|
½`2Õ±½ÖwÓ\ïž‹úÉ96ÉÃUu8<75>?îÒc?(ð$éõÐQÊãä¯êP˜øô«ËuÆÍöxQ169·d¾“3½‚‚¼ÔêRãz¿Ì<C2BF>Ÿ—Tºl>" Gáã<C3A1><08>uGà!cøšÍì³DÉÏGdf<>ï=ÍØ¥Ýa#:N¡AÖNÄ
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{}: let
|
let
|
||||||
mainframePublicKey = builtins.toString "../keys/mainframe.pub";
|
mainframePublicKey = builtins.readFile ../keys/mainframe.pub;
|
||||||
in {
|
in {
|
||||||
# This .age file should contain the following environment variables:
|
# This .age file should contain the following environment variables:
|
||||||
# NEARLYFREESPEECH_API_KEY
|
# NEARLYFREESPEECH_API_KEY
|
||||||
|
|
@ -8,4 +8,7 @@ in {
|
||||||
|
|
||||||
# WEBDAV_PASSWORD
|
# WEBDAV_PASSWORD
|
||||||
"./webdav.age".publicKeys = [mainframePublicKey];
|
"./webdav.age".publicKeys = [mainframePublicKey];
|
||||||
|
|
||||||
|
# ANTHROPIC_API_KEY
|
||||||
|
"./anthropic-api-key.age".publicKeys = [mainframePublicKey];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue