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:
WilliButz 2024-12-17 17:09:36 +01:00
parent 8404744352
commit 685d9fe348
No known key found for this signature in database
GPG key ID: AB05DF703EB9DC70

View file

@ -92,7 +92,7 @@ in
image.repart.partitions = {
# dm-verity hash partition
${cfg.partitionIds.store-verity}.repartConfig = {
Type = partitionTypes.usr-verity;
Type = lib.mkDefault partitionTypes.usr-verity;
Verity = "hash";
VerityMatchKey = lib.mkDefault verityMatchKey;
Label = lib.mkDefault "store-verity";
@ -101,7 +101,7 @@ in
${cfg.partitionIds.store} = {
storePaths = [ config.system.build.toplevel ];
repartConfig = {
Type = partitionTypes.usr;
Type = lib.mkDefault partitionTypes.usr;
Verity = "data";
Format = lib.mkDefault "erofs";
VerityMatchKey = lib.mkDefault verityMatchKey;