mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
formats: init docker
This commit is contained in:
parent
adeb359bad
commit
b0326ae4f0
@ -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
12
formats/docker.nix
Normal 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";
|
||||
}
|
Loading…
Reference in New Issue
Block a user