16 lines
494 B
Nix
16 lines
494 B
Nix
|
let
|
||
|
flake = builtins.getFlake (toString ./..);
|
||
|
nixpkgs = flake.inputs.nixpkgs;
|
||
|
lib = nixpkgs.lib;
|
||
|
system = lib.nixosSystem {
|
||
|
modules = [
|
||
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64-new-kernel-no-zfs-installer.nix"
|
||
|
{
|
||
|
nixpkgs.hostPlatform.config = "aarch64_be-unknown-linux-gnu";
|
||
|
nixpkgs.buildPlatform.system = "x86_64-linux";
|
||
|
nixpkgs.config.allowUnsupportedSystem = true;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
in system.config.system.build.sdImage
|