[wip] nixos/lxd-container.nix: init #61583
Closed
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.
Fixes #43781
Add an LXD-based container. Based on some documentation found here:
https://github.com/lxc/lxd/blob/master/doc/image-handling.md
It’s very close to the lxc container image, but with the toplevel in
rootfs/ and some meta information in metadata.yaml. I took some basic
info from the NixOS configuration for this. My main use case is
getting a Chrome OS laptop setup with Crostini.
Eventually, I want to try to get this in some image registries like
https://us.images.linuxcontainers.org/, but they don’t appear to have
any process for including new distros. I’ve opened an issue here:
lxc/lxc-ci#38
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)