-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (36 loc) · 1.12 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
{
description = "put2aria";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devenv.url = "github:cachix/devenv/v1.1";
gomod2nix.url = "github:niklashhh/gomod2nix/fix-recursive-symlinker";
gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
std.url = "github:divnix/std";
std.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=";
extra-substituters = "https://devenv.cachix.org https://cache.garnix.io";
};
outputs = {std, ...} @ inputs:
std.growOn
{
inherit inputs;
cellsFrom = ./nix;
cellBlocks = with std.blockTypes; [
(pkgs "pkgs")
(runnables "apps")
(devshells "shells")
(functions "nixosModules")
];
}
{
devShells = std.harvest inputs.self ["put2aria" "shells"];
packages = std.harvest inputs.self [
["put2aria" "apps"]
];
nixosModules = std.harvest inputs.self [
["put2aria" "nixosModules"]
];
};
}