Merge pull request #264564 from nikstur/repart-image-builder-docs-in-manual

nixos/image: move repart image builder docs into manual

nikstur ccd11083 87f99309

Changed files
+31 -27
nixos
+1
nixos/doc/manual/installation/installation.md
···
changing-config.chapter.md
upgrading.chapter.md
building-nixos.chapter.md
+
building-images-via-systemd-repart.chapter.md
```
nixos/modules/image/repart.md nixos/doc/manual/installation/building-images-via-systemd-repart.chapter.md
+25 -26
nixos/modules/image/repart.nix
···
};
});
default = { };
-
example = lib.literalExpression '' {
-
"/EFI/BOOT/BOOTX64.EFI".source =
-
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
+
example = lib.literalExpression ''
+
{
+
"/EFI/BOOT/BOOTX64.EFI".source =
+
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
-
"/loader/entries/nixos.conf".source = systemdBootEntry;
-
}
+
"/loader/entries/nixos.conf".source = systemdBootEntry;
+
}
'';
description = lib.mdDoc "The contents to end up in the filesystem image.";
};
···
partitions = lib.mkOption {
type = with lib.types; attrsOf (submodule partitionOptions);
default = { };
-
example = lib.literalExpression '' {
-
"10-esp" = {
-
contents = {
-
"/EFI/BOOT/BOOTX64.EFI".source =
-
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
-
}
-
repartConfig = {
-
Type = "esp";
-
Format = "fat";
+
example = lib.literalExpression ''
+
{
+
"10-esp" = {
+
contents = {
+
"/EFI/BOOT/BOOTX64.EFI".source =
+
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
+
}
+
repartConfig = {
+
Type = "esp";
+
Format = "fat";
+
};
};
-
};
-
"20-root" = {
-
storePaths = [ config.system.build.toplevel ];
-
repartConfig = {
-
Type = "root";
-
Format = "ext4";
-
Minimize = "guess";
+
"20-root" = {
+
storePaths = [ config.system.build.toplevel ];
+
repartConfig = {
+
Type = "root";
+
Format = "ext4";
+
Minimize = "guess";
+
};
};
};
-
};
'';
description = lib.mdDoc ''
Specify partitions as a set of the names of the partitions with their
···
| tee repart-output.json
'';
-
meta = {
-
maintainers = with lib.maintainers; [ nikstur ];
-
doc = ./repart.md;
-
};
+
meta.maintainers = with lib.maintainers; [ nikstur ];
};
}
+5 -1
nixos/modules/module-list.nix
···
./virtualisation/waydroid.nix
./virtualisation/xe-guest-utilities.nix
./virtualisation/xen-dom0.nix
-
{ documentation.nixos.extraModules = [ ./virtualisation/qemu-vm.nix ]; }
+
{ documentation.nixos.extraModules = [
+
./virtualisation/qemu-vm.nix
+
./image/repart.nix
+
];
+
}