add bcachefs iso

This commit is contained in:
Sean Buckley 2023-06-23 13:01:23 -04:00
parent 39b8d9d697
commit 49fae6395f
2 changed files with 21 additions and 0 deletions

View file

@ -9,6 +9,7 @@
mypkgs = pkgs:
{
iso = import lib/gen-iso.nix lib pkgs.system;
iso-bcachefs = import lib/gen-iso-bcachefs.nix lib pkgs.system;
} //
(lib.mapAttrs'
(name: type: {

20
lib/gen-iso-bcachefs.nix Normal file
View file

@ -0,0 +1,20 @@
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" ];
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
})
];
};
in
sys.config.system.build.isoImage