nixos/image/repart-verity-store: mount nix-store in the module (#510636)

This commit is contained in:
WilliButz
2026-04-16 16:15:38 +00:00
committed by GitHub
2 changed files with 8 additions and 8 deletions
@@ -89,6 +89,12 @@ in
};
};
fileSystems."/nix/store" = lib.mkDefault {
device = "/usr/nix/store";
fsType = "none";
options = [ "bind" ];
};
image.repart.partitions = {
# dm-verity hash partition
${cfg.partitionIds.store-verity}.repartConfig = {
@@ -18,18 +18,12 @@
{
imports = [ ../modules/image/repart.nix ];
virtualisation.fileSystems = lib.mkVMOverride {
virtualisation.fileSystems = lib.mkVMOverride { };
fileSystems = {
"/" = {
fsType = "tmpfs";
options = [ "mode=0755" ];
};
# bind-mount the store
"/nix/store" = {
device = "/usr/nix/store";
fsType = "none";
options = [ "bind" ];
};
};
image.repart = {