mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-05 18:49:41 +01:00
29 lines
669 B
Nix
29 lines
669 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
uboot = pkgs.uBootPinebookPro;
|
|
in
|
|
{
|
|
imports = [
|
|
<nixpkgs/nixos/modules/profiles/base.nix>
|
|
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
|
<nixpkgs/nixos/modules/profiles/installation-device.nix>
|
|
./nixos/sd-image-aarch64.nix
|
|
];
|
|
|
|
nixpkgs.overlays = [
|
|
(import ./overlay.nix)
|
|
];
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_pinebookpro;
|
|
|
|
sdImage = {
|
|
manipulateImageCommands = ''
|
|
(PS4=" $ "; set -x
|
|
dd if=${uboot}/idbloader.img of=$img bs=512 seek=64 conv=notrunc
|
|
dd if=${uboot}/u-boot.itb of=$img bs=512 seek=16384 conv=notrunc
|
|
)
|
|
'';
|
|
compressImage = lib.mkForce false;
|
|
};
|
|
}
|