From 4b6f4014b2d26324c942c12e1f63276eeebf07bd Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 22 May 2026 20:14:30 +0200 Subject: [PATCH] feat(ai-tools): add enable option --- modules/ai-tools/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/ai-tools/default.nix b/modules/ai-tools/default.nix index 37023641..95199abe 100644 --- a/modules/ai-tools/default.nix +++ b/modules/ai-tools/default.nix @@ -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" ];