diff --git a/morph/lib/hardware-vagrant.nix b/morph/lib/hardware-vagrant.nix index 150944cd5b64b7a3eb620cd40ea39e00544779a7..4c118f2d3b735e5a0f5a6a0d84852fa8b99a1177 100644 --- a/morph/lib/hardware-vagrant.nix +++ b/morph/lib/hardware-vagrant.nix @@ -31,6 +31,17 @@ prefixLength = 24; }]; + # The issuer configuration wants to read the location of its database + # directory from the filesystem configuration. Since the Vagrant + # environment doesn't have separate volume-as-infrastructure management + # (maybe it could? but why bother?) we do a bind-mount here so there is a + # configured value readable. The database won't really have a dedicated + # volume but it will sort of appear as if it does. + fileSystems."voucher-database" = { + device = "/var/lib/origin-zkapissuer-vouchers"; + mountPoint = "/var/lib/zkapissuer-vouchers"; + options = ["bind"]; + }; fileSystems."/storage" = { fsType = "tmpfs"; }; fileSystems."/" = { device = "/dev/sda1";