-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
52 lines (45 loc) · 1.24 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
{
description = "Open Learning engineering nix toolset.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
devenv.url = "github:cachix/devenv/caf1a2ea564c31f2ee70bc67af56f77a2758848a";
treefmt-nix.url = "github:numtide/treefmt-nix";
haumea = {
url = "github:nix-community/haumea/v0.2.2";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
self,
flake-parts,
systems,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = import systems;
perSystem = {
config,
system,
...
}: {
_module.args = {
pkgs = import inputs.nixpkgs {inherit system;};
pkgs-unstable = import inputs.nixpkgs-unstable {inherit system;};
};
};
imports =
[
inputs.devenv.flakeModule
inputs.treefmt-nix.flakeModule
]
++ (builtins.attrValues (
inputs.haumea.lib.load {
src = ./devshells;
loader = inputs.haumea.lib.loaders.path;
}
));
};
}