-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathflake.nix
58 lines (58 loc) · 1.72 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
inputs = {
nixpkgs.url = "github:NickCao/nixpkgs/riscv";
nixos-hardware.url = "github:NixOS/nixos-hardware";
};
outputs =
{
self,
nixpkgs,
nixos-hardware,
}:
{
hydraJobs = with self.nixosConfigurations.qemu; {
visionfive2 = self.nixosConfigurations.visionfive2.config.system.build.sdImage;
duo = self.nixosConfigurations.duo.config.system.build.sdImage;
duo-256 = self.nixosConfigurations.duo-256.config.system.build.sdImage;
duos = self.nixosConfigurations.duos.config.system.build.sdImage;
inherit (pkgs)
qemu
opensbi
firefox-unwrapped
firefox-esr-unwrapped
postgresql_13
postgresql_14
postgresql_15
postgresql_16
postgresql_17
nodejs_18
nodejs_20
nodejs_22
nodejs_23
;
thunderbird = pkgs.thunderbird.unwrapped;
thunderbird-128 = pkgs.thunderbird-128.unwrapped;
qt5 = {
inherit (pkgs.qt5) qtbase;
};
edk2-vf2 = pkgs.pkgsCross.riscv64-embedded.callPackage ./edk2-vf2.nix { };
};
nixosConfigurations = {
qemu = nixpkgs.lib.nixosSystem {
modules = [
./common.nix
./qemu.nix
];
};
duo = nixpkgs.lib.nixosSystem { modules = [ ./duo.nix ]; };
duo-256 = nixpkgs.lib.nixosSystem { modules = [ ./duo-256.nix ]; };
duos = nixpkgs.lib.nixosSystem { modules = [ ./duos.nix ]; };
visionfive2 = nixpkgs.lib.nixosSystem {
modules = [
./common.nix
"${nixos-hardware}/starfive/visionfive/v2/sd-image-installer.nix"
];
};
};
};
}