formats: init docker

This commit is contained in:
lassulus 2022-04-19 19:09:35 +02:00
parent adeb359bad
commit b0326ae4f0
2 changed files with 13 additions and 0 deletions

View File

@ -48,6 +48,7 @@ amazon | Amazon EC2 image
azure | Microsoft azure image (Generation 1 / VHD)
cloudstack | qcow2 image for cloudstack
do | Digital Ocean image
docker | Docker image (uses systemd to run, probably only works in podman)
gce | Google Compute image
hyperv | Hyper-V Image (Generation 2 / VHDX)
install-iso | Installer ISO

12
formats/docker.nix Normal file
View File

@ -0,0 +1,12 @@
{ modulesPath, lib, ... }:
{
imports = [
"${toString modulesPath}/virtualisation/docker-image.nix"
];
boot.isContainer = true;
services.journald.console = "/dev/console";
formatAttr = "tarball";
filename = "*.tar.xz";
}