tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/image: fix layout of option examples in repart builder
nikstur
2 years ago
14152f80
151fa7c3
+24
-22
1 changed file
expand all
collapse all
unified
split
nixos
modules
image
repart.nix
+24
-22
nixos/modules/image/repart.nix
···
34
34
};
35
35
});
36
36
default = { };
37
37
-
example = lib.literalExpression '' {
38
38
-
"/EFI/BOOT/BOOTX64.EFI".source =
39
39
-
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
37
37
+
example = lib.literalExpression ''
38
38
+
{
39
39
+
"/EFI/BOOT/BOOTX64.EFI".source =
40
40
+
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
40
41
41
41
-
"/loader/entries/nixos.conf".source = systemdBootEntry;
42
42
-
}
42
42
+
"/loader/entries/nixos.conf".source = systemdBootEntry;
43
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
99
-
example = lib.literalExpression '' {
100
100
-
"10-esp" = {
101
101
-
contents = {
102
102
-
"/EFI/BOOT/BOOTX64.EFI".source =
103
103
-
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
104
104
-
}
105
105
-
repartConfig = {
106
106
-
Type = "esp";
107
107
-
Format = "fat";
100
100
+
example = lib.literalExpression ''
101
101
+
{
102
102
+
"10-esp" = {
103
103
+
contents = {
104
104
+
"/EFI/BOOT/BOOTX64.EFI".source =
105
105
+
"''${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
106
106
+
}
107
107
+
repartConfig = {
108
108
+
Type = "esp";
109
109
+
Format = "fat";
110
110
+
};
108
111
};
109
109
-
};
110
110
-
"20-root" = {
111
111
-
storePaths = [ config.system.build.toplevel ];
112
112
-
repartConfig = {
113
113
-
Type = "root";
114
114
-
Format = "ext4";
115
115
-
Minimize = "guess";
112
112
+
"20-root" = {
113
113
+
storePaths = [ config.system.build.toplevel ];
114
114
+
repartConfig = {
115
115
+
Type = "root";
116
116
+
Format = "ext4";
117
117
+
Minimize = "guess";
118
118
+
};
116
119
};
117
120
};
118
118
-
};
119
121
'';
120
122
description = lib.mdDoc ''
121
123
Specify partitions as a set of the names of the partitions with their