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

Allow us to define files to be copied into the image

Open d4g opened this issue 5 years ago • 2 comments

I think this would be a great feature, if you need to bring some files along, that are not part of any nix package. It could also be used to mitigate the limitations of #42 or NixOS/nixpkgs#67475 .

Or is there already anyway to do that?

d4g avatar Jul 15 '20 13:07 d4g

hmm, one could do:

environment.etc."hello_world".source = /path/to/my/file;

it's limited to files in /etc/ though

Lassulus avatar Jul 15 '20 15:07 Lassulus

While this might be a solution to provision the configuration.nix + dependencies, it’s limited to files I think and as you said to /etc . But still, better then nothing.

d4g avatar Jul 16 '20 05:07 d4g