New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Compute Engine image module #49854
Conversation
ca35024
to
393afc6
Compare
@rbvermaa any suggestion? |
pushd $out | ||
mv $diskImage disk.raw | ||
tar -Szcf nixos-image-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.raw.tar.gz disk.raw | ||
rm $out/disk.raw | ||
popd | ||
''; | ||
configFile = <nixpkgs/nixos/modules/virtualisation/google-compute-config.nix>; | ||
configFile = ./google-compute-config.nix; | ||
format = "raw"; | ||
inherit diskSize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed this diskSize
should become a module option instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, gonna re-formulate this into a module.
Please use rebase in future instead of merge when syncing your changes with master. |
@Mic92 Got ya. |
Motivation for this change
Make the image output overridable, since the disk size of a GCE image is somehow arbitrarily hard-coded. Related: #36450.
Request for comments: should we write this into a module instead, so that we expose some configurable options? Related: #36425.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)