nixos/base.nix
The base Fil-C NixOS machine that filnix ships as a disk image: a whole Fil-C system (nixos/default.nix) set up to try. The console and the serial line log in as demo, who has sudo without a password; SSH takes keys only. /etc/nixos holds a flake pinned to the filnix revision the image was built from, with filc.cachix.org configured, so a first sudonixos-rebuild switch substitutes instead of compiling the world.
nix run github:mbrock/filnix#nixos-vm # boot it in QEMU nix build github:mbrock/filnix#nixos-image # the compressed qcow2
system.build.qcow2 builds the image with the native package set: the disk image tools (rsync, parted, e2fsprogs, lkl, qemu-img) come from pkgs in Nixpkgs' make-disk-image, and here pkgs is Fil-C.
What /etc/nixos starts with. nixos-rebuild picks the configuration named after the host.
The serial console last, so it gets the kernel's and systemd's output.
NixOS marks the system itself and its small generated files allowSubstitutes = false, so with max-jobs 0 (filnix-first-switch, filnix-update) Nix planned to build them although the cache has them, and failed. Substitute whatever the caches have.
Copied once, so that they can be edited.
Not git: github: flake inputs come as tarballs, and the Fil-C git with its Perl, Python and GnuPG would double the image.