Add custom Lima templates for homeless-* variants#1513
Open
kachick wants to merge 8 commits into
Open
Conversation
Create a custom Lima template `homeless-docker.yaml` derived from the standard `docker` template. This avoids mounting the host's `~` directory, which is not overridable via `default.yaml`. * pkgs/local/lima-custom-templates: add a package to generate custom templates * home-manager/lima-host.nix: link the custom templates recursively to ~/.lima/_templates/ * .github/workflows/lima-guest.yml: update CI to use the new template * README.md: update setup instructions Assisted-by: Gemini CLI <gemini-cli@google.com>
d56ec40 to
e24d5bd
Compare
Create a custom Lima template `homeless-docker.yaml` derived from the standard `docker` template. This avoids mounting the host's `~` directory, which is not overridable via `default.yaml`. * pkgs/local/lima-custom-templates: add a package to generate custom templates * home-manager/lima-host.nix: link the custom templates recursively to ~/.lima/_templates/ * .github/workflows/lima-guest.yml: update CI to build templates via Nix and rename the instance * README.md: update setup instructions Assisted-by: Gemini CLI <gemini-cli@google.com>
e24d5bd to
bab436c
Compare
* config/lima/_config/default.yaml: Clarify the intent of matching absolute paths to ensure 'limactl shell' can synchronize directories. * pkgs/local/lima-custom-templates: Improve readability of CLI flags description in meta.longDescription. Assisted-by: Gemini CLI <gemini-cli@google.com>
Lima's default.yaml has a special configuration intended for global defaults rather than a standalone template, so generating a 'homeless' version of it might not behave as expected. Assisted-by: Gemini CLI <gemini-cli@google.com>
Use `limactl validate` in `installCheckPhase` to ensure all generated homeless templates are valid YAML and follow Lima's schema. This uses `writableTmpDirAsHomeHook` to provide a temporary HOME directory for `limactl`. Assisted-by: Gemini CLI <gemini-cli@google.com>
Automatically create a symlink from `~/repos` in the guest home to the mounted host `repos` directory. This restores compatibility with tools like `ghq` and `cdrepo` while still allowing `limactl shell` to synchronize the working directory using absolute host paths. Assisted-by: Gemini CLI <gemini-cli@google.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a custom Lima template
homeless-docker.yamlderived from the standarddockertemplate. This avoids mounting the host's~directory, which isnot overridable via
default.yaml.