2e50368bd2
New rules: everything under "config" that isn't actually configuration (e.g. build products) will in future live in config.system. This is the first step.
16 lines
237 B
Nix
16 lines
237 B
Nix
{
|
|
config
|
|
, pkgs
|
|
, lib
|
|
, ...
|
|
}:
|
|
let
|
|
inherit (pkgs) liminix;
|
|
inherit (lib) mkIf;
|
|
in
|
|
{
|
|
config = mkIf (config.rootfsType == "squashfs") {
|
|
system.outputs.rootfs =
|
|
liminix.builders.squashfs config.filesystem.contents;
|
|
};
|
|
}
|