new installer creation

This commit is contained in:
Christoph Cullmann 2024-03-25 18:27:22 +01:00
parent 84da20f99e
commit dd36203b34

View file

@ -1,7 +1,7 @@
# build installer # build unstable installer
{ {
description = "Bcachefs enabled installation media"; description = "installation media";
inputs.nixos.url = "nixpkgs/nixos-unstable"; inputs.nixos.url = "nixpkgs/nixos-unstable";
outputs = { self, nixos }: { outputs = { self, nixos }: {
nixosConfigurations = { nixosConfigurations = {
@ -9,10 +9,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix" "${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;
})
]; ];
}; };
}; };
@ -21,7 +17,7 @@
git init git init
git add flake.nix git add flake.nix
nix build .#nixosConfigurations.exampleIso.config.system.build.isoImage nix --extra-experimental-features flakes --extra-experimental-features nix-command build .#nixosConfigurations.exampleIso.config.system.build.isoImage
sudo dd if=result/iso/nixos-24.05.20240108.317484b-x86_64-linux.iso of=/dev/sda bs=4M conv=fsync sudo dd if=result/iso/nixos-24.05.20240108.317484b-x86_64-linux.iso of=/dev/sda bs=4M conv=fsync