- Enhancements
- Support NixOS option
containers.<name>.autoStart
. This allows creating containers that are automatically started on system boot.
- Support NixOS option
- Enhancements
- Flake: Allow accessing built container configs.
Example:
nix eval ./examples/flake --apply 'sys: sys.containers.demo.config.networking.hostName'
- Add compatibility with NixOS 23.05, NixOS unstable
- Flake: Allow accessing built container configs.
Example:
- Fixes
- Fix
extra-container destroy --all
when more than one container is installed
- Fix
- Enhancements
- Support building containers via Flakes (see examples/flake).
- Support destroying containers from container definitions:
If you have installed containers with commandextra-container create ./mycontainers.nix
, you can now destroy these containers with the analogous commandextra-container destroy ./mycontainers.nix
.
- Fixes
- Fix incomplete container state directory path in
help()
message
- Fix incomplete container state directory path in
- Enhancements
- Support NixOS 22.05
- Enhancements
- Support NixOS unstable
- Fixes
- Fix command
destroy
for nested declarative containers
- Fix command
- Enhancements
- Support NixOS unstable
- Fixes
- Fix flake
- Enhancements
- Support NixOS 21.05 and unstable
- Add basic Nix flake support
for installing and developing.
extra-container
itself still usesnix-build
internally.
- Fixes
- Add compatibility with current NixOS unstable.
extra.exposeLocalhost
: don't fail when iptables lock can't be obtained immediately.- Fix
PATH
not being preserved in container shells.
- Enhancements. (See the README for full documentation.)
- Add generic support for systemd-based Linux distros.
- Add command
shell
. - Add extra container options:
extra.enableWAN
extra.exposeLocalhost
extra.firewallAllowHost
See eval-config.nix for descriptions. - Add option
--ssh
. - Add option
--expr|-E
. - Append
pwd
toNIX_PATH
to allow accessing the working dir in non-file configs. - Support nixpkgs versions > 20.03.
- Automatically run as root via
sudo
.
- Fixes
- Don't copy local nixpkgs sources provided via
--nixpkgs
to the nix store.
- Don't copy local nixpkgs sources provided via
- Enhancements
- Significantly speed up container evaluation.
Use a reduced module set for evaluating the container host system derivation. - Speed up container destruction.
Kill the container process instead of a clean shutdown.
- Significantly speed up container evaluation.