Skip to content

Commit 6af05ee

Browse files
committed
some vibes
1 parent 6ea8aa6 commit 6af05ee

File tree

2 files changed

+55
-3
lines changed

2 files changed

+55
-3
lines changed

nix/sources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
"homepage": "",
6666
"owner": "NixOS",
6767
"repo": "nixpkgs",
68-
"rev": "fb5cf53218b987f2703a5bbc292a030c0fe33443",
69-
"sha256": "1zds9idrm8d2hynq6bav1ap9rk2cvd67z5ppk84p44brv379m12s",
68+
"rev": "e1ebeec86b771e9d387dd02d82ffdc77ac753abc",
69+
"sha256": "1j303sbqnz43hwh69d7y78s07xnpkfafzx4li7dlnwpgbkh5mxw3",
7070
"type": "tarball",
71-
"url": "https://github.com/NixOS/nixpkgs/archive/fb5cf53218b987f2703a5bbc292a030c0fe33443.tar.gz",
71+
"url": "https://github.com/NixOS/nixpkgs/archive/e1ebeec86b771e9d387dd02d82ffdc77ac753abc.tar.gz",
7272
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
7373
}
7474
}

nix/vibe.nix

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
curl
1616
wget
1717
git
18+
ripgrep
1819
alacritty
1920
python3Minimal
2021
tmux
@@ -23,13 +24,51 @@
2324
nix-direnv
2425
asciinema
2526
asciinema-agg
27+
unst.codex
2628
unst.gemini-cli
2729
];
2830
};
2931
passwd = pkgs.writeTextFile {
3032
name = "passwd";
3133
text = "vibe:x:1000:1000:vibe:/tmp:/bin/sh";
3234
};
35+
agentsMd = pkgs.writeTextFile {
36+
name = "AGENTS.md";
37+
text = ''
38+
Read the `README.md` file if available. Study the project source code. Write your code in a strictly functional style while ensuring high efficiency. Avoid mutable variables (`mut`), imperative constructs (e.g., `for`, `while`, `loop`, or `return`), and instead use functional iterators. Eliminate redundant closures and variables. Maximize method and function chaining. Avoid `.clone()`, unnecessary allocations, and extra dependencies. Prefer the standard library exclusively when possible. Follow the existing project code style. Use meaningful, context-clear identifiers with a preference for brevity, as in the original code. Do not include comments; the code must be self-explanatory.
39+
'';
40+
};
41+
codexToml = pkgs.writeTextFile {
42+
name = "codex";
43+
text = ''
44+
profile = "lite"
45+
sandbox_mode = "danger-full-access"
46+
47+
[features]
48+
unified_exec = true
49+
streamable_shell = true
50+
apply_patch_freeform = true
51+
web_search_request = true
52+
ghost_commit = true
53+
54+
[profiles.lite]
55+
model = "gemini-2.5-flash-lite"
56+
model_provider = "gemini"
57+
58+
[profiles.std]
59+
model = "gemini-2.5-flash"
60+
model_provider = "gemini"
61+
62+
[profiles.pro]
63+
model = "gemini-2.5-pro"
64+
model_provider = "gemini"
65+
66+
[model_providers.gemini]
67+
name = "gemini"
68+
base_url = "https://generativelanguage.googleapis.com/v1beta/openai"
69+
env_key = "GEMINI_API_KEY"
70+
'';
71+
};
3372
sandbox = mkNixPak {
3473
config = {sloth, ...}: {
3574
app.package = app;
@@ -53,11 +92,24 @@
5392
"/run/current-system/sw/bin/bash"
5493
"/run/current-system/sw/bin/less"
5594
[(toString passwd) "/etc/passwd"]
95+
["${pkgs.bash}/bin/bash" "/bin/bash"]
5696
(sloth.concat' sloth.homeDir "/.bashrc")
5797
(sloth.concat' sloth.homeDir "/.bash_profile")
5898
(sloth.concat' sloth.homeDir "/.config/tmux")
5999
(sloth.concat' sloth.homeDir "/.config/alacritty")
60100
(sloth.concat' sloth.homeDir "/.config/nvim/coc-settings.json")
101+
[
102+
(toString agentsMd)
103+
(sloth.concat' sloth.homeDir "/.codex/AGENTS.md")
104+
]
105+
[
106+
(toString codexToml)
107+
(sloth.concat' sloth.homeDir "/.codex/config.toml")
108+
]
109+
[
110+
(toString agentsMd)
111+
(sloth.concat' sloth.homeDir "/.gemini/GEMINI.md")
112+
]
61113
];
62114
bind.rw = [
63115
[

0 commit comments

Comments
 (0)