liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

squashfs.nix (313B)


      1 {
      2   config
      3 , pkgs
      4 , lib
      5 , ...
      6 }:
      7 let
      8   inherit (pkgs) liminix;
      9   inherit (lib) mkIf;
     10 in
     11 {
     12   config = mkIf (config.rootfsType == "squashfs") {
     13     system.outputs.rootfs =
     14       liminix.builders.squashfs config.filesystem.contents;
     15     kernel.config = {
     16       SQUASHFS = "y";
     17       SQUASHFS_XZ = "y";
     18     };
     19   };
     20 }