Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"Bash(nix flake check)",
"Bash(rg:*)",
"Bash(mkdir:*)",
"Bash(git add:*)"
"Bash(git add:*)",
"WebFetch(domain:raw.githubusercontent.com)",
"WebFetch(domain:github.com)",
"WebSearch"
],
"deny": []
}
}
}
5 changes: 5 additions & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
pkgs,
lib,
hostname,
Expand All @@ -9,6 +10,10 @@
./services.nix
];

age.identityPaths = [
"${config.home.homeDirectory}/.ssh/id_ed25519_agenix"
];

rc = lib.mkMerge [
{
editor.enable = true;
Expand Down
1 change: 1 addition & 0 deletions home/key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK2+zD2rG/UzIClZ1MgSrzMlWdj9ljzcSzwuH8dHXP1a agenix
19 changes: 19 additions & 0 deletions home/programs/aichat.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{config, ...}: {
age.secrets.aichat-env = {
file = ../secrets/aichat-env.age;
};

programs.aichat = {
enable = true;
settings = {
model = "claude:claude-sonnet-4-20250514";
clients = [
{type = "claude";}
];
};
};

programs.zsh.sessionVariables = {
AICHAT_ENV_FILE = config.age.secrets.aichat-env.path;
};
}
1 change: 1 addition & 0 deletions home/programs/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{pkgs, ...}: {
imports = [
./aichat.nix
./starship.nix
./tmux.nix
./zsh.nix
Expand Down
Binary file added home/secrets/aichat-env.age
Binary file not shown.
1 change: 1 addition & 0 deletions lib/hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ inputs @ {
home-manager.users.${username} = {...}: {
imports =
[
agenix.homeManagerModules.default
./../modules/home
./../home
]
Expand Down
3 changes: 3 additions & 0 deletions lib/keys.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ let
];
in
builtins.listToAttrs hostKeyPairs
// {
home = firstLine (builtins.readFile ./../home/key.pub);
}
2 changes: 2 additions & 0 deletions lib/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ let
glyphSecrets = import ./secrets/glyph.nix;
sporeSecrets = import ./secrets/spore.nix;
zetaSecrets = import ./secrets/zeta.nix;
homeSecrets = import ./secrets/home.nix;
in
globalSecrets
// glyphSecrets
// sporeSecrets
// zetaSecrets
// homeSecrets
5 changes: 5 additions & 0 deletions lib/secrets/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let
keys = with (import ../keys.nix); [home Rhizome];
in {
"home/secrets/aichat-env.age".publicKeys = keys;
}