-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
40 lines (36 loc) · 942 Bytes
/
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
{
description = "My nix flake templates, using flake-compat";
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/v0.1.0.tar.gz";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
nixago.url = "github:nix-community/nixago";
nixago.inputs.nixpkgs.follows = "nixpkgs";
std = {
url = "github:divnix/std";
inputs = {
nixpkgs.follows = "nixpkgs";
devshell.follows = "devshell";
nixago.follows = "nixago";
};
};
};
outputs = {
self,
std,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./cells;
cellBlocks = with std.blockTypes; [
(nixago "configs")
(devshells "devshells")
(functions "templates")
];
}
{
templates = std.pick self ["templates" "templates"];
devShells = std.harvest self ["devshells" "devshells"];
};
}