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

Start colima without rewriting colima.yaml config #1004

Open
stackptr opened this issue Mar 20, 2024 · 0 comments
Open

Start colima without rewriting colima.yaml config #1004

stackptr opened this issue Mar 20, 2024 · 0 comments

Comments

@stackptr
Copy link

Description

I want to use NixOS to manage the colima.yaml config for the default profile. NixOS will build a YAML File in a read-only filesystem and creates a symlink to it in the expected path. This fails because colima requires write permissions:

❯ colima start -p default --very-verbose
TRAC[0000] cmd ["limactl" "info"]                       
TRAC[0000] cmd ["system_profiler" "-json" "SPHardwareDataType"] 
TRAC[0000] cmd ["system_profiler" "-json" "SPHardwareDataType"] 
FATA[0000] error preparing config file: error writing yaml file: open /Users/corey/.colima/default/colima.yaml: permission denied 

When I move the symlink and copy the contents to the path, it seems that a template is used to write a new configuration file with the values of whatever was read in on startup. While it is great that this allows poorly formatted files to be legible after startup, I'd like a way to tell colima that this unnecessary. For example, colima start --no-config-template or --read-only-config.

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

No branches or pull requests

1 participant