diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-01-10 19:19:50 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-01-10 19:19:50 +0100 |
commit | 7a934f1dc3bd88020bb76db1b3d50eb3d36d6d83 (patch) | |
tree | 9e474a448874285b7007cb509bb000c0de4a4c9d | |
parent | c37e8dd8be218579aabcfb4019ea99b58d9960ac (diff) |
installer creation
-rw-r--r-- | mini/install.txt | 29 |
1 files changed, 29 insertions, 0 deletions
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) |