liminix-fork/modules/squashfs.nix
Daniel Barlow 42725f56f9 make jffs2 module provide o.rootfs, conditionally
it's enabled if config.rootfsType == "jffs2"
2023-04-10 20:01:58 +01:00

17 lines
245 B
Nix

{
config
, pkgs
, lib
, ...
}:
let
inherit (pkgs) liminix;
inherit (lib) mkIf;
in
{
config = mkIf (config.rootfsType == "squashfs") {
outputs = rec {
rootfs = liminix.builders.squashfs config.filesystem.contents;
};
};
}