-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
48 lines (40 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
{
description = "My system configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
# Example of how to pin a nixpkgs commits
#nixpkgs.url = "github:nixos/nixpkgs/3005f20ce0aaa58169cdee57c8aa12e5f1b6e1b3";
std.url = "github:divnix/std";
std.inputs.nixpkgs.follows = "nixpkgs";
std.inputs.devshell.url = "github:numtide/devshell";
std.inputs.nixago.url = "github:nix-community/nixago";
darwin.url = "github:lnl7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
m.url = "gitlab:Mayeu/m";
m.inputs.nixpkgs.follows = "nixpkgs";
# TODO: help bring tezos via nix on macOS
#tezos.url = "github:serokell/tezos-packaging";
};
outputs = {
std,
self,
nixpkgs,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./src;
cellBlocks = with std.blockTypes; [
(installables "packages" {ci.build = true;})
(devshells "shells" {ci.build = true;})
(nixago "config")
# presets
(data "templates")
];
}
{
devShells = std.harvest self ["repo" "shells"];
packages = std.harvest self [["hosts" "packages"] ["apps" "packages"]];
templates = std.pick inputs.self ["presets" "templates"];
};
}