installer creation
This commit is contained in:
parent
c37e8dd8be
commit
7a934f1dc3
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue