From c374c8916e00907326e656ee6192e73a442c3f67 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 3 Apr 2025 01:07:10 +0200 Subject: [PATCH] flake.nix: add bcachefs installer iso package --- flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/flake.nix b/flake.nix index a61d211..87aebe1 100644 --- a/flake.nix +++ b/flake.nix @@ -99,6 +99,21 @@ packages = with pkgs; [ sops ]; }; + packages.${system} = { + bcachefsInstallerIso = let + nixosSystem = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix" + ({ lib, pkgs, ... }: { + boot.supportedFilesystems = [ "bcachefs" ]; + boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest; + }) + ]; + }; + in nixosSystem.config.system.build.isoImage; + }; + overlays = let nonrecursive-unstable-pkgs = import nixpkgs-unstable { inherit system;