anchor.diff:      echo -n ${config.system.nixosVersionSuffix} > $out/nixos/.version-suffix
     '';
   
  -  metaClosure = pkgs.writeText "meta" ''
  -    ${config.system.build.toplevel}
  -    ${config.nix.package.out}
  -    ${channelSources}
  -  '';
  -
  -  prepareImageInputs = with pkgs; [ rsync utillinux parted e2fsprogs lkl fakeroot config.system.build.nixos-prepare-root ] ++ stdenv.initialPath;
  +  binPath = with pkgs; makeBinPath (
  +    [ rsync
  +      utillinux
  +      parted
  +      e2fsprogs
  +      lkl
  +      config.system.build.nixos-install
  +      config.system.build.nixos-enter
  +      nix
  +    ] ++ stdenv.initialPath);
   
     # I'm preserving the line below because I'm going to search for it across nixpkgs to consolidate
     # image building logic. The comment right below this now appears in 4 different places in nixpkgs :)
  
positive.code:         cp ${configFile} /mnt/etc/nixos/configuration.nix
        ''}
  
        mount --rbind /dev  $mountPoint/dev
        mount --rbind /proc $mountPoint/proc
        mount --rbind /sys  $mountPoint/sys
  
        # Set up core system link, GRUB, etc.
        NIXOS_INSTALL_BOOTLOADER=1 chroot $mountPoint /nix/var/nix/profiles/system/bin/switch-to-configuration boot
  
        # TODO: figure out if I should activate, but for now I won't
        # chroot $mountPoint /nix/var/nix/profiles/system/activate
  
        # The above scripts will generate a random machine-id and we don't want to bake a single ID into all our images
        rm -f $mountPoint/etc/machine-id
  
negative.code:   sources = map (x: x.source) contents;
    targets = map (x: x.target) contents;
  
    closureInfo = pkgs.closureInfo { rootPaths = [ config.system.build.toplevel channelSources ]; };
  
    prepareImage = ''
      export PATH=${binPath}
  
      # Yes, mkfs.ext4 takes different units in different contexts. Fun.
      sectorsToKilobytes() {
  