diff --git a/testing.nix b/testing.nix new file mode 100644 index 0000000..26dbd45 --- /dev/null +++ b/testing.nix @@ -0,0 +1,27 @@ +{ lib, ... }: + +let + secrets = toString ./secrets; +in + +{ + imports = [ + + ./configuration.nix + ]; + + # Ensure secrets are accessible by the + # activation scripts at runtime. + virtualisation.qemu.options = [ + "-virtfs local,path=${secrets},security_model=none,mount_tag=secrets" + ]; + fileSystems = lib.mkVMOverride { + "${secrets}" = + { device = "secrets"; + fsType = "9p"; + options = [ "trans=virtio" "version=9p2000.L" ]; + neededForBoot = true; + }; + }; + +}