parent
06c61e2a61
commit
257afae918
1 changed files with 25 additions and 6 deletions
|
@ -42,13 +42,32 @@
|
||||||
config = {
|
config = {
|
||||||
system.stateVersion = hypervisorConfig.system.stateVersion;
|
system.stateVersion = hypervisorConfig.system.stateVersion;
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
hostKeys = [{
|
||||||
|
path = "/etc/ssh/host_keys/ssh_host_ed25519_key";
|
||||||
|
type = "ed25519";
|
||||||
|
}];
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
HostKey /etc/ssh/host_keys/ssh_host_ed25519_key
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
microvm = {
|
microvm = {
|
||||||
shares = [{
|
shares = [
|
||||||
|
{
|
||||||
source = "/nix/store";
|
source = "/nix/store";
|
||||||
mountPoint = "/nix/.ro-store";
|
mountPoint = "/nix/.ro-store";
|
||||||
tag = "ro-store";
|
tag = "ro-store";
|
||||||
proto = "virtiofs";
|
proto = "virtiofs";
|
||||||
}];
|
}
|
||||||
|
{
|
||||||
|
source = "/var/lib/microvms/${config.networking.hostName}/shares/host_keys";
|
||||||
|
mountPoint = "/etc/ssh/host_keys";
|
||||||
|
tag = "host_keys";
|
||||||
|
proto = "virtiofs";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
interfaces = [{
|
interfaces = [{
|
||||||
type = "tap";
|
type = "tap";
|
||||||
|
|
Loading…
Reference in a new issue