Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3893fb6078 | ||
|
|
715bf6140f | ||
|
|
96d838db75 | ||
|
|
445bdde2dc | ||
|
|
432a4c107a | ||
|
|
4498e8303c | ||
|
|
ddee912f51 |
@@ -1,15 +1,17 @@
|
|||||||
{ lib, 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
|
||||||
{
|
{
|
||||||
options."ai-tools".enable = lib.mkEnableOption "AI tools";
|
options."ai-tools".enable = lib.mkEnableOption "AI tools";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf config."ai-tools".enable {
|
||||||
nixpkgs.allowedUnfree = [ "claude-code" ];
|
nixpkgs.allowedUnfree = [
|
||||||
|
"claude-code"
|
||||||
|
"rtk"
|
||||||
|
];
|
||||||
secrets.opencode = [ "api-key" ];
|
secrets.opencode = [ "api-key" ];
|
||||||
|
|
||||||
sops.templates."opencode/auth.json" = {
|
sops.templates."opencode/auth.json" = {
|
||||||
|
|||||||
Reference in new issue
Block a user