opencode: make the themes also accept path

- Removed unnecessary empty-themes test.
This commit is contained in:
Thierry Delafontaine 2025-10-19 11:57:37 +02:00 committed by Austin Horstman
parent fddb33a1a5
commit 6ea30b26cd
5 changed files with 31 additions and 18 deletions

View file

@ -9,5 +9,6 @@
opencode-agents-path = ./agents-path.nix;
opencode-commands-path = ./commands-path.nix;
opencode-mixed-content = ./mixed-content.nix;
opencode-themes = ./themes.nix;
opencode-themes-inline = ./themes-inline.nix;
opencode-themes-path = ./themes-path.nix;
}

View file

@ -1,9 +0,0 @@
{
programs.opencode = {
enable = true;
themes = { };
};
nmt.script = ''
assertPathNotExists home-files/.config/opencode/themes
'';
}

View file

@ -0,0 +1,11 @@
{
nmt.script = ''
assertFileExists home-files/.config/opencode/themes/my-theme.json
assertFileContent home-files/.config/opencode/themes/my-theme.json \
${./my-theme.json}
'';
programs.opencode = {
enable = true;
themes.my-theme = ./my-theme.json;
};
}