not-os
toplevel
$ nix-build -A toplevel
/nix/store/p0b6vw6kgv39ld9xyig8ylpfzc4s3gr9-toplevel
The toplevel contains two scripts and a directory (actually a symlink):
$ ls /nix/store/q40j6y70nwhgazvhzrlzh79cjlfik7jv-not-os/
activate init sw
activatecontent is the value ofconfig.system.activationScripts.script. In particular it calls thesetup-etc.plscript.initcontent is the value ofstage-2, which isstage-2-init.sh, withsystemConfigreplaced by toplevel’s path, andsw/bin/set as its$PATH. Theinitscript mounts a few special filesystems, calls theactivatescript, then execute `runit.swis a symlink topath, which contains only abin/directory with symlinks to base executables (e.g.[,nix-build,yes, …).
The toplevel is packaged as a squashfs image.
The toplevel’s path is sometimes called systemConfig or
sysconfig.