-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
39 lines (37 loc) · 929 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
{
description = "Query Nix Cache Status";
inputs.nixpkgs.follows = "nix/nixpkgs";
inputs.std.url = "github:divnix/std";
inputs.nix.url = "github:nixos/nix/2.13-maintenance";
outputs = {
self,
nixpkgs,
std,
nix,
} @ inputs:
std.growOn {
inherit inputs;
systems = std.inputs.flake-utils.lib.defaultSystems;
cellsFrom = ./nix;
cellBlocks = [
(std.installables "packages" {ci.build = true;})
(std.devshells "devshells" {ci.build = true;})
];
} {
packages = std.harvest self [
["app" "packages"]
];
devShells = std.harvest self [
["automation" "devshells"]
];
};
nixConfig = {
allow-import-from-derivation = false;
extra-substituters = [
"https://cache.divnix.com"
];
extra-trusted-public-keys = [
"cache.divnix.com:sx7ojBrBUtdNmAMzNhiucTX+pqLzNTs4ISNb5qhh5OI="
];
};
}