tack and everything and wow
This commit is contained in:
parent
480c556d32
commit
7a6f387652
24 changed files with 801 additions and 358 deletions
|
|
@ -1,7 +1,23 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
mkCodex =
|
||||
name:
|
||||
pkgs.writeScriptBin "codex-${name}" ''
|
||||
#!${lib.getExe pkgs.nushell} --no-config-file
|
||||
def --wrapped main [...args] {
|
||||
$env.CODEX_HOME = $env | get --optional "CODEX_HOME" | default ($env.HOME | path join ".codex-${name}")
|
||||
mkdir $env.CODEX_HOME
|
||||
exec ${lib.getExe pkgs.codex} --dangerously-bypass-approvals-and-sandbox --enable goals --enable code_mode ...$args
|
||||
}
|
||||
'';
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.codex
|
||||
pkgs.opencode
|
||||
(mkCodex "amaan")
|
||||
(mkCodex "koss")
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue