diff options
Diffstat (limited to 'modules/home-manager')
| -rw-r--r-- | modules/home-manager/default.nix | 1 | ||||
| -rw-r--r-- | modules/home-manager/dev.nix | 1 | ||||
| -rw-r--r-- | modules/home-manager/opencode.nix | 19 |
3 files changed, 21 insertions, 0 deletions
diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 78964f6..26fa897 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -21,5 +21,6 @@ ./dunst.nix ./hyprlock.nix ./swayidle.nix + ./opencode.nix ]; } diff --git a/modules/home-manager/dev.nix b/modules/home-manager/dev.nix index 10e2a45..0d09577 100644 --- a/modules/home-manager/dev.nix +++ b/modules/home-manager/dev.nix @@ -12,6 +12,7 @@ zsh.enable = true; git.enable = true; gh.enable = true; + opencode.enable = true; neovim.enable = true; tmux.enable = true; gpg.enable = true; diff --git a/modules/home-manager/opencode.nix b/modules/home-manager/opencode.nix new file mode 100644 index 0000000..961d9a7 --- /dev/null +++ b/modules/home-manager/opencode.nix @@ -0,0 +1,19 @@ +{ + config, + lib, + ... +}: + +{ + options.opencode.enable = lib.mkEnableOption "Setup opencode"; + config = lib.mkIf config.opencode.enable { + programs.opencode = { + enable = true; + settings = { + theme = "system"; + share = "disabled"; + autoUpdate = true; + }; + }; + }; +} |
