mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add bcachefs iso
This commit is contained in:
parent
39b8d9d697
commit
49fae6395f
2 changed files with 21 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
mypkgs = pkgs:
|
mypkgs = pkgs:
|
||||||
{
|
{
|
||||||
iso = import lib/gen-iso.nix lib pkgs.system;
|
iso = import lib/gen-iso.nix lib pkgs.system;
|
||||||
|
iso-bcachefs = import lib/gen-iso-bcachefs.nix lib pkgs.system;
|
||||||
} //
|
} //
|
||||||
(lib.mapAttrs'
|
(lib.mapAttrs'
|
||||||
(name: type: {
|
(name: type: {
|
||||||
|
|
20
lib/gen-iso-bcachefs.nix
Normal file
20
lib/gen-iso-bcachefs.nix
Normal 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
|
Loading…
Reference in a new issue