cross compile certain packages to riscv
Some checks failed
Hydra nixosConfigurations.vf2 Hydra build #22170 of nixos-config:pr618:nixosConfigurations.vf2

This commit is contained in:
Charlotte 🦝 Delenk 2024-10-29 13:44:27 +01:00
parent c5a249ad43
commit 4188b9f82a
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Cross compiled packages for when shit breaks
{
nixpkgs,
lix,
...
}: let
pkgs_x86_64 = import nixpkgs {
system = "x86_64-linux";
crossSystem.system = "riscv64-linux";
overlays = [lix.overlays.default];
};
in {
nixpkgs.overlays = [
(self: super: {
inherit (pkgs_x86_64) lix nixos-option;
})
];
}

View file

@ -7,6 +7,7 @@
"${nixos-config}/config"
./disko.nix
./hardware.nix
./cross-packages.nix
];
system.stateVersion = "24.11";
}