My NixOS configuration and dotfiles
0

Configure Feed

Select the types of activity you want to include in your feed.

NixBTW / cli / opencode.nix
701 B 28 lines
1{ 2 config, 3 pkgs-unstable-small, 4 jail, 5 ... 6}: 7{ 8 home.packages = [ 9 (jail "opencode" pkgs-unstable-small.opencode ( 10 c: with c; [ 11 network 12 mount-cwd 13 (readwrite "/home/duskyelf/.config/opencode") 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 (set-env "PATH" "/run/current-system/sw/bin:/home/duskyelf/.nix-profile/bin") 20 21 (set-env "EDITOR" "vim") 22 ] 23 )) 24 ]; 25 26 xdg.configFile."opencode".source = 27 config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/opencodeBTW"; 28}