move modules/squashfs.nix into outputs/

This commit is contained in:
Daniel Barlow
2024-12-19 14:32:44 +00:00
parent ba5e4704a0
commit f9b4f0bc9c
4 changed files with 2 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
{
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;
kernel.config = {
SQUASHFS = "y";
SQUASHFS_XZ = "y";
};
};
}