mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-06-02 02:53:35 +02:00
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;
|
||
|
}
|