feat: add 'ai-tools' home module

This commit is contained in:
2026-01-27 16:35:20 +01:00
parent b84944543a
commit c460bebb2d
3 changed files with 41 additions and 1 deletions

View File

@@ -15,7 +15,6 @@ with pkgs;
nixfmt-rfc-style nixfmt-rfc-style
nmap nmap
nodejs_24 nodejs_24
opencode
nvimpager nvimpager
pandoc pandoc
parallel parallel

View File

@@ -11,6 +11,7 @@ in
{ {
imports = [ imports = [
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
../../modules/ai-tools.nix
../../modules/dconf.nix ../../modules/dconf.nix
../../modules/git.nix ../../modules/git.nix
../../modules/k9s.nix ../../modules/k9s.nix

40
home/modules/ai-tools.nix Normal file
View File

@@ -0,0 +1,40 @@
{
pkgs,
...
}:
{
config = {
home.packages = with pkgs; [
aider-chat
(pkgs.stdenv.mkDerivation {
name = "ccline";
src = pkgs.fetchurl {
url = "https://github.com/Haleclipse/CCometixLine/releases/download/v1.0.8/ccline-linux-x64.tar.gz";
hash = "sha256-Joe3Dd6uSMGi66QT6xr2oY/Tz8rA5RuKa6ckBVJIzI0=";
};
unpackPhase = ''
tar xzf $src
'';
installPhase = ''
mkdir -p $out/bin
cp ccline $out/bin/
chmod +x $out/bin/ccline
'';
meta = with pkgs.lib; {
description = "CCometixLine Linux x64 CLI (Claude Code statusline)";
homepage = "https://github.com/Haleclipse/CCometixLine";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
};
})
claude-code
# (config.lib.nixGL.wrap code-cursor)
github-copilot-cli
mcp-nixos
opencode
];
};
}