mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 19:43:12 +00:00
Add opencode
This commit is contained in:
parent
c8b7dc1ec7
commit
7af65a0c9b
4 changed files with 78 additions and 0 deletions
38
modules/home/terminal/opencode/default.nix
Normal file
38
modules/home/terminal/opencode/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options.mods.opencode.enable = lib.mkEnableOption "enables opencode";
|
||||
|
||||
# imports = [
|
||||
# ./package.nix
|
||||
# ./dcg.nix
|
||||
# ];
|
||||
|
||||
config = lib.mkIf config.mods.opencode.enable {
|
||||
home.packages = with pkgs; [
|
||||
(callPackage ./dcg.nix {})
|
||||
];
|
||||
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"plugin" = ["opencode-gemini-auth"];
|
||||
|
||||
"permission" = {
|
||||
"bash" = {
|
||||
"*" = "ask";
|
||||
"rm *" = "deny";
|
||||
"rmdir *" = "deny";
|
||||
"unlink *" = "deny";
|
||||
"*rm *" = "ask";
|
||||
"*rmdir *" = "ask";
|
||||
"*unlink *" = "ask";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue