-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcli.nix
More file actions
37 lines (34 loc) · 966 Bytes
/
cli.nix
File metadata and controls
37 lines (34 loc) · 966 Bytes
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
{
lib,
statix,
deadnix,
alejandra,
colmena,
vulnix,
callPackage,
writeShellScript,
...
}:
lib.mkCli "cli" {
_noAll = true;
test = {
lint = "${statix}/bin/statix check .";
dead-code = "${deadnix}/bin/deadnix .";
format = "${alejandra}/bin/alejandra --check .";
};
fix = {
lint = "${statix}/bin/statix fix .";
dead-code = "${deadnix}/bin/deadnix -e .";
format = "${alejandra}/bin/alejandra .";
};
deploy = "${colmena}/bin/colmena apply";
check-vulnerabilities = "${vulnix}/bin/vulnix --system";
iot = callPackage ./iot.nix {};
systems-test = callPackage ./systems-test.nix {};
upload-keys = "${colmena}/bin/colmena upload-keys --on crux";
send-gpg-keys = writeShellScript "upload-gpg-keys" ''
gpg --keyserver keyserver.ubuntu.com --send-key 0x426ABF93ACE024D0
gpg --keyserver keys.openpgp.org --send-key 0x426ABF93ACE024D0
gpg --keyserver pgp.mit.edu --send-key 0x426ABF93ACE024D0
'';
}