diff options
author | nikstur <nikstur@outlook.com> | 2023-10-31 10:49:56 +0100 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2023-10-31 11:27:57 +0100 |
commit | 14152f80bbe39216755fc6c09bd995be4833dea8 (patch) | |
tree | e332105efcfd5bcedebbad24a7ed810fc1a323ca /nixos/modules | |
parent | 151fa7c39c4b0c765d1ad076afdf042b1517a0ed (diff) | |
download | nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.tar nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.tar.gz nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.tar.bz2 nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.tar.lz nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.tar.xz nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.tar.zst nixlib-14152f80bbe39216755fc6c09bd995be4833dea8.zip |
nixos/image: fix layout of option examples in repart builder
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/image/repart.nix | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/nixos/modules/image/repart.nix b/nixos/modules/image/repart.nix index e006ce83ce77..41e6110885b8 100644 --- a/nixos/modules/image/repart.nix +++ b/nixos/modules/image/repart.nix @@ -34,12 +34,13 @@ let }; }); 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."; }; @@ -96,26 +97,27 @@ in 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 |