nixos/repart-image: support swap
This commit is contained in:
@@ -81,6 +81,7 @@ let
|
|||||||
"erofs" = [ erofs-utils ];
|
"erofs" = [ erofs-utils ];
|
||||||
"btrfs" = [ btrfs-progs ];
|
"btrfs" = [ btrfs-progs ];
|
||||||
"xfs" = [ xfsprogs ];
|
"xfs" = [ xfsprogs ];
|
||||||
|
"swap" = [ util-linux ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystemTools = builtins.concatMap (f: fileSystemToolMapping."${f}") fileSystems;
|
fileSystemTools = builtins.concatMap (f: fileSystemToolMapping."${f}") fileSystems;
|
||||||
|
|||||||
@@ -73,6 +73,14 @@ in
|
|||||||
SizeMinBytes = if config.nixpkgs.hostPlatform.isx86_64 then "64M" else "96M";
|
SizeMinBytes = if config.nixpkgs.hostPlatform.isx86_64 then "64M" else "96M";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"swap" = {
|
||||||
|
repartConfig = {
|
||||||
|
Type = "swap";
|
||||||
|
Format = "swap";
|
||||||
|
SizeMinBytes = "10M";
|
||||||
|
SizeMaxBytes = "10M";
|
||||||
|
};
|
||||||
|
};
|
||||||
"root" = {
|
"root" = {
|
||||||
storePaths = [ config.system.build.toplevel ];
|
storePaths = [ config.system.build.toplevel ];
|
||||||
repartConfig = {
|
repartConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user