image/repart: run nixfmt

This commit is contained in:
phaer 2025-04-25 21:28:01 +02:00
parent 0a8b014f67
commit 1df1c8828d

View file

@ -95,7 +95,7 @@ in
name = lib.mkOption { name = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = '' description = ''
Name of the image. Name of the image.
If this option is unset but config.system.image.id is set, If this option is unset but config.system.image.id is set,
config.system.image.id is used as the default value. config.system.image.id is used as the default value.
@ -152,7 +152,7 @@ in
# Generated with `uuidgen`. Random but fixed to improve reproducibility. # Generated with `uuidgen`. Random but fixed to improve reproducibility.
default = "0867da16-f251-457d-a9e8-c31f9a3c220b"; default = "0867da16-f251-457d-a9e8-c31f9a3c220b";
description = '' description = ''
A UUID to use as a seed. You can set this to `null` to explicitly A UUID to use as a seed. You can set this to `null` to explicitly
randomize the partition UUIDs. randomize the partition UUIDs.
''; '';
}; };
@ -161,7 +161,7 @@ in
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
description = '' description = ''
Enables generation of split artifacts from partitions. If enabled, for Enables generation of split artifacts from partitions. If enabled, for
each partition with SplitName= set, a separate output file containing each partition with SplitName= set, a separate output file containing
just the contents of that partition is generated. just the contents of that partition is generated.
''; '';
@ -172,7 +172,7 @@ in
default = 512; default = 512;
example = lib.literalExpression "4096"; example = lib.literalExpression "4096";
description = '' description = ''
The sector size of the disk image produced by systemd-repart. This The sector size of the disk image produced by systemd-repart. This
value must be a power of 2 between 512 and 4096. value must be a power of 2 between 512 and 4096.
''; '';
}; };
@ -191,7 +191,7 @@ in
type = with lib.types; attrsOf (submodule partitionOptions); type = with lib.types; attrsOf (submodule partitionOptions);
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {
"10-esp" = { "10-esp" = {
contents = { contents = {
"/EFI/BOOT/BOOTX64.EFI".source = "/EFI/BOOT/BOOTX64.EFI".source =
@ -213,7 +213,7 @@ in
}; };
''; '';
description = '' description = ''
Specify partitions as a set of the names of the partitions with their Specify partitions as a set of the names of the partitions with their
configuration as the key. configuration as the key.
''; '';
}; };
@ -222,12 +222,12 @@ in
type = with lib.types; attrsOf (listOf str); type = with lib.types; attrsOf (listOf str);
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {
vfat = [ "-S 512" "-c" ]; vfat = [ "-S 512" "-c" ];
} }
''; '';
description = '' description = ''
Specify extra options for created file systems. The specified options Specify extra options for created file systems. The specified options
are converted to individual environment variables of the format are converted to individual environment variables of the format
`SYSTEMD_REPART_MKFS_OPTIONS_<FSTYPE>`. `SYSTEMD_REPART_MKFS_OPTIONS_<FSTYPE>`.