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

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)
if type -q ds
_DS_COMPLETE=fish_source ds | source;
end;
_DS_COMPLETE=fish_source ds | source
end

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

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