-
Notifications
You must be signed in to change notification settings - Fork 75
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
Support NixOS containers as targets #112
base: main
Are you sure you want to change the base?
Conversation
Interesting! Does this work with Background: I recently wanted to do something similar. I wrote a script to deploy |
I haven't tried it, but I could imagine it might work if you use |
Actually, maybe Colmena can subsume your use of |
In my case the host is Ubuntu, so colmena has no provisioning powers there. (My deploy script runs |
In that case, I think this change won't help you much as the host still needs to be NixOS-ish. This container deployment mechanism relies on the fact that NixOS shares the Nix store between host and containers. |
FYI, the |
@zhaofengli, do you have time to look at this? |
Hi, sorry for the delay. This is a bit too specialized in my view, and relies on pre-existing configurations on the target host (the container already running). I think something like the profile API in deploy-rs is more flexible to accommodate multiple usecases like this without adding all of them into Colmena itself. |
Thanks for the comment, @zhaofengli.
I am not sure I follow this argument exactly. The |
This adds support for applying a configuration to a NixOS container.
Note, this requires the respective container to already exist and be started.
Example:
Hive configuration (partial):
Apply the configuration:
Verify: