nixos/repart-verity-store: use mkDefault for partition types
This makes it a bit easier to switch between using the default usr veritysetup generator or the nix-store veritysetup generator.
This commit is contained in:
@@ -92,7 +92,7 @@ in
|
|||||||
image.repart.partitions = {
|
image.repart.partitions = {
|
||||||
# dm-verity hash partition
|
# dm-verity hash partition
|
||||||
${cfg.partitionIds.store-verity}.repartConfig = {
|
${cfg.partitionIds.store-verity}.repartConfig = {
|
||||||
Type = partitionTypes.usr-verity;
|
Type = lib.mkDefault partitionTypes.usr-verity;
|
||||||
Verity = "hash";
|
Verity = "hash";
|
||||||
VerityMatchKey = lib.mkDefault verityMatchKey;
|
VerityMatchKey = lib.mkDefault verityMatchKey;
|
||||||
Label = lib.mkDefault "store-verity";
|
Label = lib.mkDefault "store-verity";
|
||||||
@@ -101,7 +101,7 @@ in
|
|||||||
${cfg.partitionIds.store} = {
|
${cfg.partitionIds.store} = {
|
||||||
storePaths = [ config.system.build.toplevel ];
|
storePaths = [ config.system.build.toplevel ];
|
||||||
repartConfig = {
|
repartConfig = {
|
||||||
Type = partitionTypes.usr;
|
Type = lib.mkDefault partitionTypes.usr;
|
||||||
Verity = "data";
|
Verity = "data";
|
||||||
Format = lib.mkDefault "erofs";
|
Format = lib.mkDefault "erofs";
|
||||||
VerityMatchKey = lib.mkDefault verityMatchKey;
|
VerityMatchKey = lib.mkDefault verityMatchKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user