Skip to content
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

make-disk-image: convert into NixOS module #771

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

Enzime
Copy link
Member

@Enzime Enzime commented Sep 14, 2024

As makeDiskImages always requires a NixOS configuration, we can simplify the code by converting it into a NixOS module. Then we can make it responsible for populating system.build.diskoImages and system.build.diskoImagesScript.

As `makeDiskImages` always requires a NixOS configuration, we can
simplify the code by convering it into a NixOS module. Then we can make
it responsible for populating `system.build.diskoImages` and
`system.build.diskoImagesScript`.
@Enzime Enzime force-pushed the refactor/make-disk-image branch from ace113a to cc4d4a4 Compare September 14, 2024 09:35
@Enzime
Copy link
Member Author

Enzime commented Sep 15, 2024

cc @Lassulus @Mic92

Copy link
Collaborator

@Lassulus Lassulus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, not sure if it breaks some obscure use cases, but from what I can imagine it should be fine. Otherwise I hope people can complain we can revert it or fix :)

@Lassulus Lassulus merged commit 51e3a7e into nix-community:master Sep 15, 2024
3 checks passed
@Enzime Enzime deleted the refactor/make-disk-image branch September 15, 2024 11:13
Comment on lines 106 to 112
memSize = lib.mkOption {
type = lib.types.int;
description = ''
size of the memory passed to runInLinuxVM, in megabytes
'';
default = 1024;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should memSize have been moved, too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't move it because it's being shared by interactive VM:

virtualisation.memorySize = config.disko.memSize;

Maybe the comment needs updating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants