mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 15:11:03 +01:00
ollama: add darwin support
This commit is contained in:
parent
8c0671c513
commit
daf04c5950
8 changed files with 75 additions and 3 deletions
13
tests/modules/services/ollama/linux/basic.nix
Normal file
13
tests/modules/services/ollama/linux/basic.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config = {
|
||||
services.ollama.enable = true;
|
||||
|
||||
test.stubs.ollama = { };
|
||||
|
||||
nmt.script = ''
|
||||
serviceFile="home-files/.config/systemd/user/ollama.service"
|
||||
assertFileRegex "$serviceFile" 'After=network\.target'
|
||||
assertFileRegex "$serviceFile" 'Environment=OLLAMA_HOST=127.0.0.1:11434'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue