26 lines
622 B
Nix
26 lines
622 B
Nix
_inputs: _self: super: {
|
|
lib =
|
|
super.lib
|
|
// {
|
|
containers.mkConfig = name: config:
|
|
super.lib.mkMerge [
|
|
{
|
|
bindMounts = {
|
|
"state" = {
|
|
mountPoint = "/state";
|
|
hostPath = "/state/containers/${name}";
|
|
};
|
|
"persist" = {
|
|
mountPoint = "/persist";
|
|
hostPath = "/containers/${name}";
|
|
};
|
|
};
|
|
zfs.mountpoint = super.lib.mkDefault "/containers/${name}";
|
|
#config = {...}: {
|
|
#};
|
|
}
|
|
config
|
|
];
|
|
};
|
|
}
|