NixOS Containers: Difference between revisions
→See also: Fix link to nixos-container.pl |
Add the required host configuration to enable the use of NixOS containers |
||
| Line 2: | Line 2: | ||
See [[Docker]] page for OCI container (Docker, Podman) configuration. | See [[Docker]] page for OCI container (Docker, Podman) configuration. | ||
=== Host Configuration === | |||
For all of the examples below to work, you'll have to enable virtualization and the use of containers in your host systems nix configuration.{{file|||<nowiki> | |||
boot.enableContainers = true; | |||
virtualisation.containers.enable = true; | |||
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}} | |||
=== Configuration === | === Configuration === | ||