Custom GNU/Linux LiveCD

Introduction

Keyboard layout, specific packages, files and services.

  • Obtaining tools and generating image.
  • Exploring customization possibilities.
  • Practice with rde.

Guix

  • Declarative.
  • Reproducible.
  • Simple.
  • Available.

On debian and derivatives:

sudo apt install guix
guix pull

Generating an ISO Image

As simple as

guix system image -t iso9660 -e '(@ (gnu system install) installation-os)'

If you have a local copy of Guix sources.

cd ~/work/gnu/guix
guix system build gnu/system/install.scm
guix system image -t iso9660 gnu/system/install.scm

Testing It

Make sure the user is in kvm group. C-M-g to grab/ungrab input devices.

qemu-system-x86_64 -enable-kvm -boot d -m 4096 -cdrom image.iso

Exploring Internals

Customizing the Image

Custom channels

Building image with rde

Future Work

  • Implement guix-home-service-type.
  • Provide pre-configured images.

Conclusion

  • The right way is much easier in long run.

Links