feat(ai-tools): add enable option
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
{ config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
cfg = config."ai-tools";
|
||||||
inherit (config.host) username;
|
inherit (config.host) username;
|
||||||
inherit (config.secrets) owner;
|
inherit (config.secrets) owner;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
options."ai-tools".enable = lib.mkEnableOption "AI tools";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
nixpkgs.allowedUnfree = [ "claude-code" ];
|
nixpkgs.allowedUnfree = [ "claude-code" ];
|
||||||
secrets.groups.opencode = [ "api-key" ];
|
secrets.groups.opencode = [ "api-key" ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user