This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
99 lines (84 loc) · 2.63 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
naersk = {
url = "github:nix-community/naersk";
inputs.nixpkgs.follows = "nixpkgs";
};
utils = { url = "github:numtide/flake-utils"; };
gnuradio-decoder = {
url = "github:tlm-solutions/gnuradio-decoder";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "utils";
};
data-accumulator = {
url = "github:tlm-solutions/data-accumulator";
inputs.nixpkgs.follows = "nixpkgs";
inputs.naersk.follows = "naersk";
inputs.utils.follows = "utils";
};
dvb-api = {
url = "github:tlm-solutions/dvb-api";
inputs.nixpkgs.follows = "nixpkgs";
inputs.naersk.follows = "naersk";
inputs.utils.follows = "utils";
};
funnel = {
url = "github:tlm-solutions/funnel";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "utils";
};
windshield = {
url = "github:tlm-solutions/windshield";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "utils";
};
wartrammer = {
url = "github:tlm-solutions/wartrammer-40k";
inputs.nixpkgs.follows = "nixpkgs";
inputs.naersk.follows = "naersk";
inputs.utils.follows = "utils";
};
click = {
url = "github:tlm-solutions/click";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "utils";
};
stops = {
url = "github:tlm-solutions/stop-names";
inputs.nixpkgs.follows = "nixpkgs";
inputs.naersk.follows = "naersk";
inputs.utils.follows = "utils";
};
tlms-rs = {
url = "github:tlm-solutions/tlms.rs";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, click, data-accumulator
, dvb-api, funnel, nixpkgs, gnuradio-decoder, wartrammer
, windshield, stops, tlms-rs, ... }:
let
system =
"x86_64-linux"; # builtins.currentSystem doesn't work here apparently
in {
# composes all of our overlays into one
overlays.default = nixpkgs.lib.composeManyExtensions [
click.overlays.default
data-accumulator.overlays.default
dvb-api.overlays.default
funnel.overlays.default
gnuradio-decoder.overlays.default
stops.overlays.default
wartrammer.overlays.default
windshield.overlays.default
];
nixosModules = {
TLMS = import ./nixos-modules/TLMS self;
disk-module = import ./nixos-modules/disk-module;
default = self.nixosModules.TLMS;
};
packages.${system}."run-database-migration" =
tlms-rs.packages.${system}.run-migration;
};
}