liminix

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

squashfs.nix (237B)


      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   };
     16 }