Use latest zfs compatible kernel
This commit is contained in:
parent
ae05bdb2dd
commit
253720c398
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user