[macbook] Add opencode config, and the necessary packages to build it locally.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
f57680b440
commit
8e8a3c7b46
2 changed files with 23 additions and 1 deletions
19
home-modules/opencode-config.nix
Normal file
19
home-modules/opencode-config.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ ... } : {
|
||||
home.file.".config/opencode/opencode.jsonc" = {
|
||||
text = ''
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"edit": "ask",
|
||||
"bash": {
|
||||
"git status": "allow",
|
||||
"git diff": "allow",
|
||||
"ls": "allow",
|
||||
"pwd": "allow",
|
||||
"*": "ask"
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@ in {
|
|||
../../home-modules/secretive.nix
|
||||
../../home-modules/starship.nix
|
||||
../../home-modules/tmux.nix
|
||||
../../home-modules/opencode-config.nix
|
||||
../../home-modules/zsh.nix
|
||||
];
|
||||
|
||||
|
|
@ -57,7 +58,8 @@ in {
|
|||
hash = "sha256-SGZwt2jzAQbOMlvudqPWat281su6OwT7JG2CNSMjL3A=";
|
||||
};
|
||||
}))
|
||||
pkgs-unstable.opencode
|
||||
pkgs-unstable.go
|
||||
pkgs-unstable.bun
|
||||
];
|
||||
|
||||
stateVersion = "24.11";
|
||||
|
|
@ -71,6 +73,7 @@ in {
|
|||
homeconf = "nvim ${homeDirectory}/nixos/hosts/macbook/home.nix";
|
||||
nvconf = "nvim ${homeDirectory}/nixos/home-modules/explicit-configs/nvim/init.lua";
|
||||
nrsw = "sudo darwin-rebuild switch --flake ${homeDirectory}/nixos#macbook";
|
||||
opencode = "/Users/jmug/dev/opencode/dist-local/bin/opencode"; # Replace with the app.
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue