Open copumpkin opened 7 years ago
@copumpkin I was code diving through some of these files (thinking the same thing as you) and then I found a link to here in one of your comments. I'm currently using nixos as a basis for creating system (disk) images. How can I help?
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Still important, stale bot :)
@copumpkin I'm the maintainer of the builds.sr.ht NixOS image, and we need UID/GID/mode support in contents
to set some user configuration files. I could send a patch to fix annoyance n°1 for the make-disk-image.nix
script. Would you accept such a change? Or would you prefer all the builders to be unified first?
I marked this as stale due to inactivity. → More info
Annoyance 1 is fixed, but afaik the others remain
Not sure if this is the right place, but would it be possible to add support for custom partitioning scripts? make-disk-image.nix
would be great to generate images e.g. for personal machines if it allowed the parted
script to be overriden or extended to accommodate other partition layouts like adding extra partitions or setting labels.
I marked this as stale due to inactivity. → More info
Looks like it's still the same?
Annoyances I've found so far:
contents
, to dump arbitrary other files to the resulting filesystem. make-disk-image.nix does not. Furthermore, the waycontents
is implemented varies across related scripts:make-etc.sh
has a very similar structure, but understands glob patterns, UIDs, GIDs, and modes. The two mentioned earlier are stripped-down versions of the same idea, with no support for UIDs or GIDs.This is a more logical breakdown to me:
contents
above) to a filesystem treeI'd bet that virtually of our tarball/image/
nixos-install
work can then be expressed in terms of those four building blocks.I'm volunteering to clean this all up. https://github.com/NixOS/nixpkgs/pull/23026 and https://github.com/NixOS/nixpkgs/pull/21943 are the first steps, but I plan to reduce all the sprawl as well. I think our image building story can be truly excellent and a major selling point of NixOS, but right now it's inconsistent and occasionally pretty awkward.