feat(mibook): add claude-code profile module
Installs claude-code (stable), ripgrep, fd, gh, and jq for user finn. Includes annotation for future headless service upgrade path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ in
|
|||||||
};
|
};
|
||||||
development.enable = true;
|
development.enable = true;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
claude-code.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
my.hardware = {
|
my.hardware = {
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.claude-code;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.profiles.claude-code = with lib; {
|
||||||
|
enable = mkEnableOption "Claude Code CLI";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
users.users.finn.packages = with pkgs; [
|
||||||
|
claude-code
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
gh
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
|
||||||
|
# Future: headless Claude Code service
|
||||||
|
# A natural next step is exposing Claude Code as a persistent background service —
|
||||||
|
# e.g. a systemd user service that accepts work via an HTTP API or Unix socket,
|
||||||
|
# triggerable over SSH or a local network endpoint. This would turn the MiBook
|
||||||
|
# into a true remote execution node without requiring an interactive session.
|
||||||
|
# See: my.profiles.claude-code.service.enable (not yet implemented)
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
./actual
|
./actual
|
||||||
./apps
|
./apps
|
||||||
./audiobookshelf
|
./audiobookshelf
|
||||||
|
./claude-code
|
||||||
./development
|
./development
|
||||||
./home-assistant
|
./home-assistant
|
||||||
./hyprland
|
./hyprland
|
||||||
|
|||||||
Reference in New Issue
Block a user