From 7a934f1dc3bd88020bb76db1b3d50eb3d36d6d83 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 10 Jan 2024 19:19:50 +0100 Subject: [PATCH] installer creation --- mini/install.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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)