refactor(ai-tools): move options into 'default.nix'

This commit is contained in:
2026-09-28 23:25:17 +02:00
parent 5b480bd0d6
commit 48f484cb85
5 changed files with 29 additions and 25 deletions
-15
View File
@@ -7,16 +7,6 @@
let
cfg = config.ai-tools.claude-code;
skillType = lib.types.submodule {
options = {
owner = lib.mkOption { type = lib.types.str; };
repo = lib.mkOption { type = lib.types.str; };
rev = lib.mkOption { type = lib.types.str; };
hash = lib.mkOption { type = lib.types.str; };
skill = lib.mkOption { type = lib.types.str; };
};
};
fetchSkill =
skill:
let
@@ -38,11 +28,6 @@ let
};
in
{
options.ai-tools.claude-code.skills = lib.mkOption {
type = lib.types.listOf skillType;
default = [ ];
};
config = lib.mkIf cfg.enable {
home.file = builtins.listToAttrs (map fetchSkill cfg.skills);
};