Use latest zfs compatible kernel

This commit is contained in:
Sandro - 2022-12-23 21:42:36 +01:00
parent ae05bdb2dd
commit 253720c398
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -8,6 +8,8 @@
};
config = {
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
# just all the microvms from this flake
# that are supposed to run on the server
microvm.autostart =
@ -18,10 +20,12 @@
(config.c3d2.deployment.server or null) == config.networking.hostName
) (builtins.attrNames self.nixosConfigurations);
systemd.services."microvm-virtiofsd@" = {
systemd.services = {
"microvm-virtiofsd@" = {
requires = [ "microvm-zfs-datasets@%i.service" ];
};
systemd.services."microvm-zfs-datasets@" = {
"microvm-zfs-datasets@" = {
description = "Create ZFS datasets for MicroVM '%i'";
before = [ "microvm-virtiofsd@%i.service" ];
after = [ "local-fs.target" ];
@ -57,6 +61,7 @@
done
'';
};
};
nix.settings = {
min-free = 128000000;