nixos-config/lib/gen-iso-bcachefs.nix

22 lines
557 B
Nix
Raw Normal View History

2023-06-23 17:01:23 +00:00
lib:
system:
let
sys = lib.nixosSystem {
inherit system;
modules = [
({ modulesPath, pkgs, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix"
];
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_testing_bcachefs;
boot.supportedFilesystems = [ "bcachefs" ];
2023-06-25 04:00:37 +00:00
boot.initrd.availableKernelModules = [ "bcachefs" ];
2023-06-23 17:01:23 +00:00
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
})
];
};
in
sys.config.system.build.isoImage