My NixOS configuration and dotfiles
1{
2 config,
3 jail,
4 pkgs-unstable-small,
5 ...
6}:
7{
8 home.packages = [
9 (jail "pi" pkgs-unstable-small.pi-coding-agent (
10 c: with c; [
11 network
12 mount-cwd
13 (readwrite "/home/duskyelf/.pi")
14
15 # can run any binary with limited file system access
16 (readonly "/nix/store")
17 (readonly "/run/current-system/sw/bin")
18 (readonly "/home/duskyelf/.nix-profile/bin")
19 (readonly "/home/duskyelf/.deploy-system/")
20 (set-env "PATH" "/run/current-system/sw/bin:/home/duskyelf/.nix-profile/bin")
21
22 (set-env "EDITOR" "vim")
23 ]
24 ))
25 ];
26
27 home.file.".pi".source =
28 config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/piBTW";
29}