feat(ai-tools): add enable option

This commit is contained in:
2026-05-22 20:14:30 +02:00
parent e994e540c1
commit 4b6f4014b2

View File

@@ -1,11 +1,14 @@
{ config, ... }:
{ lib, config, ... }:
let
cfg = config."ai-tools";
inherit (config.host) username;
inherit (config.secrets) owner;
in
{
config = {
options."ai-tools".enable = lib.mkEnableOption "AI tools";
config = lib.mkIf cfg.enable {
nixpkgs.allowedUnfree = [ "claude-code" ];
secrets.groups.opencode = [ "api-key" ];