init
This commit is contained in:
commit
57fa994768
9 changed files with 311 additions and 0 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue