modules: add ai module which has claude code in it
This commit is contained in:
parent
1242921bad
commit
8b39a1d5ea
4 changed files with 21 additions and 0 deletions
18
home/modules/ai.nix
Normal file
18
home/modules/ai.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.local.programs.ai;
|
||||||
|
in {
|
||||||
|
options.local.programs.ai = {
|
||||||
|
enable = mkEnableOption "ai apps";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
claude-code
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -21,5 +21,6 @@
|
||||||
./zed.nix
|
./zed.nix
|
||||||
./pass.nix
|
./pass.nix
|
||||||
./halloy.nix
|
./halloy.nix
|
||||||
|
./ai.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
programs = {
|
programs = {
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
mapping.enable = true;
|
mapping.enable = true;
|
||||||
|
ai.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
lib: name:
|
lib: name:
|
||||||
with lib;
|
with lib;
|
||||||
elem name [
|
elem name [
|
||||||
|
"claude-code"
|
||||||
"discord"
|
"discord"
|
||||||
"spotify"
|
"spotify"
|
||||||
"spotify-unwrapped"
|
"spotify-unwrapped"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue