-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathflake.nix
56 lines (48 loc) · 1.53 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
{
description =
"Provide extra Nix packages for Machine Learning and Data Science";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
};
outputs = { self, flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
# Uncomment the following line to enable debug, e.g. in nix repl.
# See https://flake.parts/debug
# debug = true;
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
perSystem = { system, config, pkgs, ... }: {
formatter = pkgs.nixfmt-classic;
# Override pkgs so that all parts can use this as their `pkgs`.
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config = {
allowUnfree = true;
cudaSupport = true;
cudaForwardCompat = true;
};
overlays = [
self.overlays.cc-batteries
self.overlays.math
self.overlays.torch-family
self.overlays.tools
self.overlays.julia-family
self.overlays.time-series
self.overlays.robotics
self.overlays.gen-ai
];
};
};
imports = [
./cc-batteries/part.nix
./math/part.nix
./torch-family/part.nix
./tools/part.nix
./julia-family/part.nix
./time-series/part.nix
./robotics/part.nix
./gen-ai/part.nix
];
};
}