-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (29 loc) · 1.13 KB
/
Copy pathflake.nix
File metadata and controls
35 lines (29 loc) · 1.13 KB
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
{
description = "DMG Game Boy Emulator for embedded devices";
nixConfig = {
extra-substituters = ["https://nixos-raspberrypi.cachix.org"];
extra-trusted-public-keys = ["nixos-raspberrypi.cachix.org-1:4iMO9LXa8BqhU+Rpg6LQKiGa2lsNh/j2oiYLNOQ5sPI="];
connect-timeout = 5;
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
fenix.url = "github:nix-community/fenix/monthly";
nixos-raspberrypi.url = "github:nvmd/nixos-raspberrypi";
};
outputs = inputs @ {
self,
nixpkgs,
...
}: let
outputs = self;
eachSystem = f:
nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"]
(system: f system (import nixpkgs {inherit system;}));
in {
lib = import ./nix/lib {inherit inputs outputs;};
packages = eachSystem (system: pkgs: import ./nix/packages {inherit inputs outputs system pkgs;});
devShells = eachSystem (system: pkgs: import ./nix/devshells {inherit inputs outputs system pkgs;});
nixosConfigurations = import ./nix/hosts {inherit inputs outputs;};
installerImages.gbeed02 = outputs.nixosConfigurations.gbeed02.config.system.build.sdImage;
};
}