feat(home): move cli config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 19:15:48 +08:00
parent 1a3ff4b92a
commit 00e3ea65c8
No known key found for this signature in database
17 changed files with 198 additions and 271 deletions

View file

@ -0,0 +1,53 @@
{ inputs, pkgs, ... }:
{
programs = {
nh.enable = true;
tealdeer.enable = true;
tealdeer.settings.updates.auto_update = true;
pay-respects.enable = true;
direnv = {
enable = true;
nix-direnv.enable = true;
};
starship = {
enable = true;
settings = {
add_newline = false;
format = ''
$directory$character
'';
right_format = ''
$all
'';
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
shlvl.disabled = false;
hostname.disabled = true;
username.disabled = true;
};
};
};
home = {
shellAliases = {
v = "nvim";
e = "edit";
cd = "z";
ai = "aichat -r %shell% -e";
};
packages = with pkgs; [
aichat
devenv
pantheon.rebuild
pantheon.deploy
pantheon.edit
pantheon.commit
pantheon.check
inputs.nixspect.packages."x86_64-linux".nixspect
];
};
xdg.configFile."aichat/config.yaml".text = ''
model: gemini:gemini-2.0-flash
clients:
- type: gemini
'';
}