mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
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:
parent
8404744352
commit
685d9fe348
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue