1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-27 05:19:44 +01:00
wip-pinebook-pro/configuration.nix

25 lines
592 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2020-01-06 23:09:56 +01:00
let
uboot = pkgs.uBootPinebookProExternalFirst;
2020-01-06 23:09:56 +01:00
in
{
imports = [
2020-01-06 23:09:56 +01:00
<nixpkgs/nixos/modules/profiles/base.nix>
<nixpkgs/nixos/modules/profiles/minimal.nix>
<nixpkgs/nixos/modules/profiles/installation-device.nix>
2020-01-06 23:09:56 +01:00
./nixos/sd-image-aarch64.nix
./pinebook_pro.nix
2020-01-07 01:50:35 +01:00
];
2020-01-06 23:09:56 +01:00
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;
};
}