lol

nixos/image: fix layout of option examples in repart builder

nikstur 14152f80 151fa7c3

+24 -22
+24 -22
nixos/modules/image/repart.nix
··· 34 34 }; 35 35 }); 36 36 default = { }; 37 - example = lib.literalExpression '' { 38 - "/EFI/BOOT/BOOTX64.EFI".source = 39 - "''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi"; 37 + example = lib.literalExpression '' 38 + { 39 + "/EFI/BOOT/BOOTX64.EFI".source = 40 + "''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi"; 40 41 41 - "/loader/entries/nixos.conf".source = systemdBootEntry; 42 - } 42 + "/loader/entries/nixos.conf".source = systemdBootEntry; 43 + } 43 44 ''; 44 45 description = lib.mdDoc "The contents to end up in the filesystem image."; 45 46 }; ··· 96 97 partitions = lib.mkOption { 97 98 type = with lib.types; attrsOf (submodule partitionOptions); 98 99 default = { }; 99 - example = lib.literalExpression '' { 100 - "10-esp" = { 101 - contents = { 102 - "/EFI/BOOT/BOOTX64.EFI".source = 103 - "''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi"; 104 - } 105 - repartConfig = { 106 - Type = "esp"; 107 - Format = "fat"; 100 + example = lib.literalExpression '' 101 + { 102 + "10-esp" = { 103 + contents = { 104 + "/EFI/BOOT/BOOTX64.EFI".source = 105 + "''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi"; 106 + } 107 + repartConfig = { 108 + Type = "esp"; 109 + Format = "fat"; 110 + }; 108 111 }; 109 - }; 110 - "20-root" = { 111 - storePaths = [ config.system.build.toplevel ]; 112 - repartConfig = { 113 - Type = "root"; 114 - Format = "ext4"; 115 - Minimize = "guess"; 112 + "20-root" = { 113 + storePaths = [ config.system.build.toplevel ]; 114 + repartConfig = { 115 + Type = "root"; 116 + Format = "ext4"; 117 + Minimize = "guess"; 118 + }; 116 119 }; 117 120 }; 118 - }; 119 121 ''; 120 122 description = lib.mdDoc '' 121 123 Specify partitions as a set of the names of the partitions with their