Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Portable services #448

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

feat: Portable services #448

wants to merge 5 commits into from

Conversation

shivaraj-bh
Copy link
Member

@shivaraj-bh shivaraj-bh commented Feb 14, 2025

resolves #354

Init with ollama.

Usage

process-compose app

# Inside perSystem
{
  process-compose.sf-ollama = {
    imports = [ inputs.services-flake.processComposeModules.default ];
    services.ollama.o1.enable = true;
  };
}

And nix run .#sf-ollama to start the service

systemd/launchd user unit/agent

Note: The option services.<service-name> overlaps with existing service definitions in home-manager. I could rename it to avoid conflict, but for now you could use the release-24.11 branch of home-manager that doesn’t yet have ollama.

# In your `homeConfiguration`
{
  imports = [ inputs.services-flake.homeModules.default ];
  services.ollama.o1.enable = true;
}

Lastly, activate your home-manager config...

<Insert home-manager template to test Ollama running via systemd or launchd>

TODO:

  • outputs.{systemd, launchd, process-compose} must share as much configuration as possible (also add sane defaults for systemd and launchd)
  • systemd and launchd tests
  • Documentation

@shivaraj-bh shivaraj-bh changed the title feat: Portable services init feat: Portable services Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Portable services
1 participant