NixOS on ARM: Difference between revisions
imported>Grische |
imported>Quentinmit fix flake cross-compilation instructions |
||
Line 423: | Line 423: | ||
{ | { | ||
description = "Build image"; | description = "Build image"; | ||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos- | inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; | ||
outputs = { self, nixpkgs }: rec { | outputs = { self, nixpkgs }: rec { | ||
nixosConfigurations.rpi2 = nixpkgs.lib.nixosSystem { | nixosConfigurations.rpi2 = nixpkgs.lib.nixosSystem { | ||
modules = [ | modules = [ | ||
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix" | "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix" | ||
{ | { | ||
nixpkgs.config.allowUnsupportedSystem = true; | nixpkgs.config.allowUnsupportedSystem = true; | ||
nixpkgs. | nixpkgs.hostPlatform.system = "armv7l-linux" | ||
nixpkgs.buildPlatform.system = "x86_64-linux"; | |||
# ... extra configs as above | # ... extra configs as above | ||
} | } |