-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
77 lines (74 loc) · 1.94 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
description = "CBus - Clustered DBus with NATS";
nixConfig = {
extra-substituters = [
"https://numtide.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
srvos.url = "github:numtide/srvos";
nixpkgs.follows = "srvos/nixpkgs";
flake-parts = {
url = "github:hercules-ci/flake-parts";
};
flake-root.follows = "nix-lib/flake-root";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "srvos/nixpkgs";
};
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "srvos/nixpkgs";
};
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
gomod2nix = {
url = "github:nix-community/gomod2nix";
inputs = {
nixpkgs.follows = "srvos/nixpkgs";
flake-utils.follows = "devshell/flake-utils";
};
};
flake-linter = {
url = "github:mic92/flake-linter";
inputs.flake-parts.follows = "flake-parts";
};
nix-lib = {
url = "github:brianmcgee/nix-lib";
inputs = {
nixpkgs.follows = "srvos/nixpkgs";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
};
};
nix-filter.url = "github:numtide/nix-filter";
github-actions = {
url = "github:nix-community/nix-github-actions";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
flake-parts,
nixpkgs,
...
}: let
inherit (nixpkgs) lib;
in
flake-parts.lib.mkFlake
{
inherit inputs;
specialArgs = {
inherit lib; # make lib available to top level functions
};
} {
imports = [./nix];
systems = [
"x86_64-linux"
"aarch64-linux"
];
};
}