installer creation

This commit is contained in:
Christoph Cullmann 2024-01-10 19:19:50 +01:00
parent c37e8dd8be
commit 7a934f1dc3

View file

@ -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 # Defining some helper variables (these will be used in later code
# blocks as well, so make sure to use the same terminal session or # blocks as well, so make sure to use the same terminal session or
# redefine them later) # redefine them later)