Skip to content

Instantly share code, notes, and snippets.

@ereslibre
Created February 24, 2022 19:59
Show Gist options
  • Save ereslibre/6aee16b55f785837f53849b33382a78b to your computer and use it in GitHub Desktop.
Save ereslibre/6aee16b55f785837f53849b33382a78b to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {
crossSystem = "aarch64-linux";
overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
];
};
configuration = { pkgs, modulesPath, ... }: {
imports = [
(modulesPath + "/installer/sd-card/sd-image-aarch64-installer.nix")
];
boot.kernelPackages = pkgs.linuxPackages_rpi3;
};
nixos = pkgs.nixos configuration;
in nixos.config.system.build.sdImage
all:
nix-build -I nixpkgs=~/path/to/nixpkgs-checked-out-at-pr-156005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment