Skip to content

Conversation

will-lol
Copy link
Contributor

@will-lol will-lol commented Oct 1, 2025

Description

Adds a colima service. This service will be useful to darwin users who would like to run containers on their computer. It is based on this PR in nix-darwin, but I determined it to be more practical to be in hm. This PR depends on my other PR that adds docker context support.

Colima also supports linux, but is far less commonly used. Still, I have built this hm module to support linux. I have tested it to the best of my abilities without access to a bare metal machine. If someone could give it a spin that would be amazing!

These changes will allow users of nix on darwin to:

  • Enable container support in a few lines of configuration
  • Easily have and switch between multiple docker hosts. This is particularly relevant as more options become available for containerisation on darwin (https://github.com/apple/containerization)

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@will-lol will-lol force-pushed the colima branch 6 times, most recently from 4f94f6e to f6df623 Compare October 7, 2025 05:52
@will-lol will-lol force-pushed the colima branch 2 times, most recently from 4fde36c to e8a705a Compare October 14, 2025 21:47
@home-manager-ci home-manager-ci bot removed the request for review from FriedrichAltheide October 14, 2025 21:48
@will-lol
Copy link
Contributor Author

Now that my other PR is merged, this one is ready to be considered.
I still don't have access to a bare metal linux box to test this unfortunately! It would be amazing if someone could give this module a spin on linux.

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.

1 participant