liminix

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

squashfs.nix (310B)


      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 = liminix.builders.squashfs config.filesystem.contents;
     14     kernel.config = {
     15       SQUASHFS = "y";
     16       SQUASHFS_XZ = "y";
     17     };
     18   };
     19 }