Restructure flake.nix for a simpler config for building different images off the same NixOS config.
This commit is contained in:
23
nix/configuration/formats/iso.nix
Normal file
23
nix/configuration/formats/iso.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/cd-dvd/iso-image.nix")
|
||||
];
|
||||
|
||||
config = {
|
||||
isoImage.makeEfiBootable = true;
|
||||
isoImage.makeUsbBootable = true;
|
||||
|
||||
me.buildingPortable = true;
|
||||
me.mountPersistence = lib.mkForce false;
|
||||
me.optimizations.enable = lib.mkForce false;
|
||||
me.image_based_appliance.enable = true;
|
||||
|
||||
# TODO: image based appliance?
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user