38 lines
823 B
Nix
38 lines
823 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, ... }: {
|
|
nixosConfigurations = {
|
|
jupiter = nixpkgs.lib.nixosSystem rec {
|
|
system = "riscv64-linux";
|
|
specialArgs = {
|
|
inherit self system inputs;
|
|
boot = self.packages.x86_64-linux.boot.entries;
|
|
};
|
|
|
|
modules = [
|
|
./cpu.nix
|
|
./nixpkgs.nix
|
|
./builder.nix
|
|
./system.nix
|
|
./boot.nix
|
|
|
|
./ghc.nix
|
|
./riscvfixes.nix
|
|
];
|
|
};
|
|
};
|
|
|
|
packages = {
|
|
x86_64-linux = let
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
in {
|
|
boot = pkgs.linkFarm "boot" {
|
|
"ghc-9.4.8" = pkgs.pkgsCross.riscv64.haskell.compiler.native-bignum.ghc948;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|