2023-04-10 20:59:09 +02:00
|
|
|
{
|
|
|
|
config
|
|
|
|
, pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (pkgs) liminix;
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = mkIf (config.rootfsType == "squashfs") {
|
2023-07-13 20:24:59 +02:00
|
|
|
system.outputs.rootfs =
|
|
|
|
liminix.builders.squashfs config.filesystem.contents;
|
2023-08-30 23:59:28 +02:00
|
|
|
kernel.config = {
|
|
|
|
SQUASHFS = "y";
|
|
|
|
SQUASHFS_XZ = "y";
|
|
|
|
};
|
2023-04-10 20:59:09 +02:00
|
|
|
};
|
|
|
|
}
|