feat(home): move cli config to homes and use home-manager modules
This commit is contained in:
parent
1a3ff4b92a
commit
00e3ea65c8
17 changed files with 198 additions and 271 deletions
53
homes/x86_64-linux/rafiq/cli/utilities/misc.nix
Normal file
53
homes/x86_64-linux/rafiq/cli/utilities/misc.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue