deris/elft: use prometheus-packet-sd from nixpkgs
Martin Weinelt committed
Dec 17, 2021 at 22:39 UTC
f78c9903fed30662e65cde44509dbae0bde27691
2 files changed
+2
-27
delft/eris.nix
+2
-4
@@ -548,16 +548,14 @@ in {
548
"f /var/lib/packet-sd/packet-sd.json 0644 packet-sd - -"
549
];
550
551
- systemd.services.prometheus-packet-sd = let
552
- sd = pkgs.callPackage ./prometheus/packet-sd.nix {};
553
- in {
551
+ systemd.services.prometheus-packet-sd = {
552
wantedBy = [ "multi-user.target" "prometheus.service" ];
553
after = [ "network.target" ];
554
555
serviceConfig = {
556
User = "packet-sd";
557
Group = "keys";
560
- ExecStart = "${sd}/bin/prometheus-packet-sd --output.file=/var/lib/packet-sd/packet-sd.json";
558
+ ExecStart = "${pkgs.packet-sd}/bin/prometheus-packet-sd --output.file=/var/lib/packet-sd/packet-sd.json";
559
EnvironmentFile = "/run/keys/packet-sd-env";
560
Restart = "always";
561
RestartSec = "60s";
delft/prometheus/packet-sd.nix
deleted
-23
@@ -1,23 +0,0 @@
1
-{ buildGoModule, fetchFromGitHub, lib }:
2
-buildGoModule rec {
3
- pname = "prometheus-packet-sd";
4
- version = "v0.0.3";
5
-
6
- src = fetchFromGitHub {
7
- owner = "packethost";
8
- repo = "prometheus-packet-sd";
9
- rev = "v0.0.3";
10
- sha256 = "sha256-2k8AsmyhQNNZCzpVt6JdgvI8IFb5pRi4ic6Yn2NqHMM=";
11
- };
12
-
13
- vendorSha256 = null;
14
-
15
- subPackages = [ "." ];
16
-
17
- meta = with lib; {
18
- description = "Prometheus service discovery for Packet.";
19
- homepage = "https://github.com/packethost/prometheus-packet-sd";
20
- license = licenses.asl20;
21
- platforms = platforms.linux;
22
- };
23
-}