mirror of
https://github.com/nix-community/disko.git
synced 2026-01-15 10:48:38 +01:00
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
|