Sign inSign up

bbarker/nixos_base

By bbarker

Updated about 9 years ago

This is a straight dump of a Docker KVM image. Do NOT run directly, see directions below.

Image
0

114

bbarker/nixos_base repository overview

Usage

Use an image with appropriate startup scripts and configuration changes:

Security note - this base image has demo as the root password currently. This is definitely a security concern. Do not use in production unless you know what you are doing.

Creation

Follow the directions for installing nix, and do it in KVM (e.g., run virt-manager). After verifying the VM behaves normally, find the qcow2 image, e.g., for me it was located at /var/lib/libvirt/images/NixOS17.03.qcow2.

Note that while running in the VM, /dev/sda1 may show up as something else, like /dev/vda1.

guestmount --ro -a ./NixOS17.03.qcow2 -m /dev/sda1 /root/tmpnix
tar -cvzf ~brandon/SystemConfig/DevSystem_DockerPlusNix/NixOS17.03.tar.gz  -C /root/tmpnix ./
docker import ~brandon/SystemConfig/DevSystem_DockerPlusNix/NixOS17.03.tar.gz nixos_base:17.03 

Cleanup:

guestunmount /root/tmpnix
rm ~brandon/SystemConfig/DevSystem_DockerPlusNix/NixOS17.03.tar.gz

Tag summary

Content type

Image

Digest

Size

290 MB

Last updated

about 9 years ago

docker pull bbarker/nixos_base:17.03