28 lines
682 B
Nix
28 lines
682 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
extlinux-conf-builder =
|
|
import <nixpkgs/nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.nix> {
|
|
pkgs = pkgs.buildPackages;
|
|
};
|
|
in
|
|
{
|
|
imports = [
|
|
./sd-image.nix
|
|
];
|
|
|
|
boot.loader.grub.enable = false;
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
sdImage = {
|
|
populateRootCommands = ''
|
|
mkdir -p ./files/boot
|
|
${extlinux-conf-builder} -t 3 -c ${config.system.build.toplevel} -d ./files/boot
|
|
'';
|
|
};
|
|
|
|
# the installation media is also the installation target,
|
|
# so we don't want to provide the installation configuration.nix.
|
|
installer.cloneConfig = false;
|
|
}
|