nixos-generators icon indicating copy to clipboard operation
nixos-generators copied to clipboard

Add support for `system.disableInstallerTools = true;`

Open dpc opened this issue 2 years ago • 2 comments

Right now fails with:

$ nix build .#vbox
warning: Git tree '/home/dpc/lab/rustshop' is dirty
error: attribute 'nixos-install' missing

       at /nix/store/1qz0d0cx49ic26jynvb6fqmzl138rj0s-source/nixos/lib/make-disk-image.nix:170:7:

          169|       lkl
          170|       config.system.build.nixos-install
             |       ^
          171|       config.system.build.nixos-enter
(use '--show-trace' to show detailed location information)

which I guess means that it expects these tools to be there during build phase.

dpc avatar Jun 27 '22 17:06 dpc

I don't think nixos-generators can support this option because it's needed for make-disk-image, which is part of nixpkgs and not nixos-generators.

Mic92 avatar Jun 27 '22 18:06 Mic92

@Mic92 That's during building, but the resulting image no longer needs it. At least in theory the image doing the building and the image being built do not have to have the same configuration.

But I understand if this does not fit the current architecture etc.

I was just trying to get as small of an image as possible, and it's not a hard blocker for me. However I am a bit disappointed in how relatively large are minimum NixOs images. :rofl:

dpc avatar Jun 27 '22 22:06 dpc