update ollama, add magic space, install opencode

This commit is contained in:
2026-01-10 18:58:54 -06:00
parent bd20e9a29b
commit daf0ea1169
8 changed files with 63 additions and 28 deletions

View File

@@ -12,5 +12,6 @@
./zsh
./ssh
./ohmyposh
./opencode
];
}

View File

@@ -6,12 +6,16 @@
programs.zsh = {
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
cat ${config.home.homeDirectory}/.cache/wal/sequences
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
'') else (lib.mkBefore ''
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
'');
initContent = with lib; mkMerge [
(mkIf config.homeconfig.wal.enable (mkBefore ''
cat ${config.home.homeDirectory}/.cache/wal/sequences
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
''))
(mkIf (!config.homeconfig.wal.enable) (mkBefore ''
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
''))
];
};

View File

@@ -2,7 +2,7 @@
options.homeconfig.opencode.enable = with lib; mkOption {
type = with types; bool;
default = false;
default = true;
};
config = lib.mkIf config.homeconfig.opencode.enable {
@@ -12,7 +12,7 @@
settings = {
theme = "system";
model = "";
model = "ollama-local/ministral-3:8b";
provider = {
ollama-local = {

View File

@@ -1,8 +1,12 @@
{ config, lib, pkgs, ... }: {
{ lib, ... }: {
programs.zsh = {
enable = true;
initContent = lib.mkOrder 1200 ''
bindkey ' ' magic-space
'';
enableCompletion = true;