Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-07-20 01:09:50 +02:00
9 changed files with 116 additions and 69 deletions

View File

@@ -49,7 +49,7 @@ if __name__ == "__main__":
text = /*bash*/ ''
echo CHANGING OWNERSHIP OF "$(realpath "$1")" RECURSIVELY
read -r -p "Continue?"
sudo chown -R ${user} "$1"
sudo chown -R ${hyper.user} "$1"
${u}/bin/nx_fix_campuszeit_python "$1"
sudo chown -R radicale "$1"
'';

View File

@@ -184,7 +184,7 @@
supersend-menu = false;
};
inline-diagnostics = {
cursor-line = "hint";
cursor-line = "warning";
other-lines = "disable";
prefix-len = 1;
# max-wrap = set above

30
home-modules/opencode.nix Normal file
View File

@@ -0,0 +1,30 @@
{ pkgs, ... }@all: with all; {
home = {
packages = with pkgs; [
unstable.opencode
];
file.".config/opencode/opencode.json".text = let
model = "qwen2.5-coder:7b";
in builtins.toJSON {
"$schema" = "https://opencode.ai/config.json";
model = "ollama/${model}";
theme = "matrix";
provider = {
ollama = {
apiKey = "KEY";
disabled = false;
npm = "@ai-sdk/openai-compatible";
options = {
baseURL = "http://localhost:11434/v1";
};
models = {
"${model}" = {
tools = true;
};
};
};
};
};
};
}

View File

@@ -10,6 +10,7 @@
ffmpeg
figlet
fzf
gh
glib
glow
gnumake
@@ -21,6 +22,7 @@
mediainfo
mpv
neofetch
pastel
pdfgrep
pipes
pv