mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
cc4d4a4b91
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`.
14 lines
306 B
Nix
14 lines
306 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, ...
|
|
}:
|
|
|
|
(pkgs.nixos [
|
|
../module.nix
|
|
../example/simple-efi.nix
|
|
({ config, ... }: {
|
|
documentation.enable = false;
|
|
system.stateVersion = config.system.nixos.version;
|
|
disko.memSize = 2048;
|
|
disko.checkScripts = true;
|
|
})
|
|
]).config.system.build.diskoImages
|