diff --git a/mini/install.txt b/mini/install.txt index bb0944a..089590d 100644 --- a/mini/install.txt +++ b/mini/install.txt @@ -1,3 +1,32 @@ +# build installer + +{ + description = "Bcachefs enabled installation media"; + inputs.nixos.url = "nixpkgs/nixos-unstable"; + outputs = { self, nixos }: { + nixosConfigurations = { + exampleIso = nixos.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + "${nixos}/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; + }) + ]; + }; + }; + }; +} + +git init +git add flake.nix +nix build .#nixosConfigurations.exampleIso.config.system.build.isoImage + +# +# install script below +# + # Defining some helper variables (these will be used in later code # blocks as well, so make sure to use the same terminal session or # redefine them later)