Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78c7388192 | ||
|
|
81093e2b69 | ||
|
|
74a11e0e63 | ||
|
|
f77dea3e42 | ||
|
|
0776c9a63e | ||
|
|
82109a74ff | ||
|
|
9ad228fd0e |
@@ -1,17 +1,15 @@
|
|||||||
{ 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 config."ai-tools".enable {
|
config = lib.mkIf cfg.enable {
|
||||||
nixpkgs.allowedUnfree = [
|
nixpkgs.allowedUnfree = [ "claude-code" ];
|
||||||
"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