mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(microvms): use systemd in stage1
This commit is contained in:
parent
0cc126fb5f
commit
70203d485a
1 changed files with 8 additions and 4 deletions
|
@ -130,6 +130,12 @@
|
|||
tag = "ro-store";
|
||||
proto = "virtiofs";
|
||||
}
|
||||
{
|
||||
source = "/state/vms/${vmName}";
|
||||
mountPoint = "/state";
|
||||
tag = "state";
|
||||
proto = "virtiofs";
|
||||
}
|
||||
]
|
||||
# Mount persistent data from the host
|
||||
++ optional vmCfg.zfs.enable {
|
||||
|
@ -140,7 +146,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
# FIXME this should be changed in microvm.nix to mkDefault instead of mkForce here
|
||||
# FIXME this should be changed in microvm.nix to mkDefault in oder to not require mkForce here
|
||||
fileSystems."/state".neededForBoot = mkForce true;
|
||||
fileSystems."/persist".neededForBoot = mkForce true;
|
||||
|
||||
# Add a writable store overlay, but since this is always ephemeral
|
||||
|
@ -176,9 +183,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
# TODO change once microvms are compatible with stage-1 systemd
|
||||
boot.initrd.systemd.enable = mkForce false;
|
||||
|
||||
# TODO mkForce nftables
|
||||
networking.nftables.firewall = {
|
||||
zones = mkForce {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue