feat: add aider and zoxide

This commit is contained in:
Nickolaj Jepsen 2025-02-26 20:34:54 +01:00
parent 61c5b14142
commit e1c45442b8
12 changed files with 55 additions and 6 deletions

3
.gitignore vendored
View file

@ -1,7 +1,6 @@
result
result/
secrets/yubikey-identity.txt secrets/yubikey-identity.txt
# Avoid leaking ssh keys # Avoid leaking ssh keys
**/id_ed25519 **/id_ed25519
**/id_rsa **/id_rsa
.aider*

View file

@ -16,4 +16,4 @@
proxyJump = "bastion.ao"; proxyJump = "bastion.ao";
}; };
}; };
} }

View file

@ -3,7 +3,7 @@
nautilus nautilus
gnome-photos gnome-photos
]; ];
services.gvfs.enable = true; services.gvfs.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;

View file

@ -6,5 +6,7 @@
./shell/comma.nix ./shell/comma.nix
./shell/neovim.nix ./shell/neovim.nix
./shell/zellij.nix ./shell/zellij.nix
./shell/zoxide.nix
./shell/aider.nix
]; ];
} }

25
modules/shell/aider.nix Normal file
View file

@ -0,0 +1,25 @@
{
pkgsUnstable,
username,
config,
...
}: {
age.secrets.llm-api-key = {
rekeyFile = ../../secrets/llm-api-key.env.age;
mode = "0600";
owner = username;
};
environment.systemPackages = with pkgsUnstable; [
aider-chat
];
fireproof.home-manager = {
home.file.".aider.conf.yml".text = ''
# Aider configuration file
# This file is used to configure the Aider chat client
# It is a YAML file
sonnet: true
env-file: ${config.age.secrets.llm-api-key.path}
'';
};
}

View file

@ -1,4 +1,4 @@
# ds autocomplete (if its installed) # ds autocomplete (if its installed)
if type -q ds if type -q ds
_DS_COMPLETE=fish_source ds | source; _DS_COMPLETE=fish_source ds | source
end; end

5
modules/shell/zoxide.nix Normal file
View file

@ -0,0 +1,5 @@
_: {
fireproof.home-manager.programs.zoxide = {
enable = true;
};
}

View file

@ -0,0 +1,8 @@
age-encryption.org/v1
-> ssh-ed25519 UqEUow ZTWzzn7Ra3xjMUJkRm+lK+HMdqxCM1XiDneKWk6IoUY
7HIwLVhsJftGWMjhCQddz/MMqnpv7UoR1QzEXUfqVqo
-> ;7rhkFK-grease
2fBbpwA7
--- Dj4NFjzl0zb+Wxl+j2eChRWowe4PAGkag//fwnjiiAs
Æ%®„ÿÞŒéÐ?èÅŠ¬øò$qU1Pk%]Cì:ýODŠxÉ­¡yŽóÌy†,[´Dm NZÑc *Å pÑ;è˜Þ †3R}"P8Šá ö
 öö¬­¬³<C2AC>q UP/0X9q2Õ ŽÙh}¾è<C2BE>Èòvåºó!©ñPŒG#OŸëËö½¤4Œh¦öÕ^@^J÷ ¨<>/2K

View file

@ -0,0 +1,10 @@
age-encryption.org/v1
-> X25519 PkSPG1ZMXK0ArIw/8DE10dbf4bIh0539bjWzOCjDIFs
TtWsG59L7YoHVO+nl3lzDSEFFljVMMWef9QkOkZKmT4
-> piv-p256 q3LNVw AvnoJDyUKLYCgIDWN4ey0UhENnnfJLpE/6jMh7iiwTZO
oVvNazfISZ4P027JK9wSMR1XQmO2oCVOf162SHL1k6o
-> Z#uEQzx-grease y<&| pho{
PJKNrTEwLc21FkpGIa+FNaOJvzFJ
--- efk3YmjrmLWXw5GSNc9NBhtpOqQWaK6d1rs/7ZlQjBg
mBÊ¥F Ui§J!©¿Â OG¯åÐ÷·†ª'¬ /}÷”挔lœÛ¾Õ™£<E284A2>Ct …y£7ãršô^a95gk3ÙIüüaŠ&36{ó‹èµ)«¨ïì´_šç^ŸnGÚžö±êßm 
»WYÜ~>«b­Ðz{úøxƒZ@<07>1-<2D>)té5`ÿì&¾Oð¿%ˆ§È`ø“?pýÔ2