Commit graph

1319 commits

Author SHA1 Message Date
h7x4 cd9c62afca nixos/graphite: add systemd slice
Co-authored-by: Bjørn Forsman <bjorn.forsman@gmail.com>
2024-10-01 20:15:22 +02:00
h7x4 b12aa4265c
nixos/ups: add system-ups.slice (#338556) 2024-09-21 17:05:26 +02:00
Bjørn Forsman b03e47330b
smartmontools: build with systemdLibs on linux (#342407) 2024-09-19 20:49:26 +02:00
Bjørn Forsman 86a6ef5f15 nixos/prometheus-smartctl-exporter: fix NVMe scanning
smartctl_exporter already runs with SupplementaryGroups "disk", which
gives full access to SATA drives, but NVMe devices are owned by
root:root, resulting in no access:

  [...] msg="Smartctl open device: /dev/nvme0 failed: Permission denied"

This patch introduces a "smartctl-exporter-access" supplementary
group, and an udev rule with setfacl to give the exporter access to NVMe
drives, without changing the base root:root ownership.

Fixes https://github.com/NixOS/nixpkgs/issues/210041
2024-09-19 17:28:30 +02:00
h7x4 4423e93451
nixos/smartd: set Type = notify on systemd service 2024-09-16 23:21:24 +02:00
Bjørn Forsman 1cb392fdcd nixos/ups: set env vars in the global environment
This allows using upsdrvctl interactively, which otherwise tries to use
a missing ups.conf in the Nix store, instead of the correct
/etc/nut/ups.conf.
2024-09-11 21:14:48 +02:00
Bjørn Forsman 801388a6fa nixos/ups: deduplicate environment variables
No functional change, but more DRY.
2024-09-11 21:14:48 +02:00
Felix Bühler 6cc52ec011
nixos/services.graphite: remove with lib; (#339095) 2024-09-10 22:15:56 +02:00
Aleksana 1579b92dd4
todesk: init at 4.7.2.0 (#310474) 2024-09-10 21:42:59 +08:00
Maximilian Bosch 862ecd674f
nixos/prometheus-exporters/pgbouncer: don't leak DB password into cmdline
Since `connectionStringFile` reads the file and puts it into the
invocation of the exporter, it's part of the cmdline and thus
effectively world-readable.

Added a new `connectionEnvFile` which is supposed to be an environment
file of the form

  PGBOUNCER_EXPORTER_CONNECTION_STRING=...

that will be added to the systemd service. The exporter will read the
connection string from that value.
2024-09-09 21:08:17 +02:00
Maximilian Bosch 4980a7d938
nixos/prometheus-exporters: fix assertions declared in exporter modules
And it turns out, the test was using a removed option all along 🙃
2024-09-09 21:08:17 +02:00
Ryan Horiguchi 737d1ffb22 netdata: 1.46.1 -> 1.47.0 2024-09-05 10:19:35 +02:00
Felix Bühler d7ed3794f0
nixos/services.unpoller: remove with lib; (#339094) 2024-09-04 23:52:53 +02:00
Felix Buehler f57a188819 nixos/services.unpoller: remove with lib; 2024-09-02 22:30:26 +02:00
Felix Buehler 4f6d325a8a nixos/services.graphite: remove with lib; 2024-09-02 22:29:51 +02:00
Maximilian Bosch 735662bf16
prometheus-openldap-exporter: remove
2.3.0 is the final release, the repo is now archived.

Also I don't use it anymore for quite a while, so it didn't have a real
nixpkgs maintainer either.

Closes #338712
2024-09-01 16:47:45 +02:00
wxt 1c77c14c21 nixos/todesk: init 2024-09-01 17:19:09 +08:00
Echo Nolan 934a337a13 nixos/telegraf: make sure ping executable is available when trying to ping
We need ping to be in PATH of the service otherwise it can't ping. This commit
adds it, conditional on one of the inputs being a ping task.
2024-08-31 15:29:04 -04:00
Tomodachi94 2ae2834863
nixos/ups: add system-ups.slice
Part of #279915
2024-08-30 23:10:01 -07:00
Philip Taron 117f3ceb51
treewide/nixos: remove with lib; part 1 (#335603) 2024-08-29 15:42:04 -07:00
Felix Buehler 14dad27e70 nixos/services.prometheus.exporters: remove with lib; 2024-08-30 00:30:58 +02:00
Felix Buehler d27bffefab nixos/power.ups: remove with lib; 2024-08-29 00:26:49 +02:00
Yury Shvedov 183a78cb56 nixos/gitwatch: add module
Create module for gitwatch script. This module runs systemd services.
You are able to have several services for different paths at once.

Change-Id: If6100e883dd12a428f79881a80b9b88e683f6db9
2024-08-27 07:35:47 +00:00
Bjørn Forsman 1edbc4fa0d nixos/ups: change upsmon option type from str to enum
According to `man upsd.users`, the option is 'either set to "primary" or
"secondary"'.
2024-08-22 21:25:47 +02:00
Bjørn Forsman dc7379e04f nixos/ups: restart upsdrv.service on config changes
Or else new configuration won't take effect until the next boot (or if
the user manually restarts the service).
2024-08-20 22:08:01 +02:00
Ivan Trubach 63caf38e33 nixos/prometheus.exporters.pgbouncer: fix escaping connectionStringFile in shell arguments 2024-08-08 05:54:45 +03:00
Ivan Trubach 6008ed89f6 nixos/prometheus.exporters.pgbouncer: do not assume that pgbouncer runs on localhost
PgBouncer instance running on localhost may not be the on being
monitored in connectionString. Remove checks that forbid valid
configuration from being used and instead document requirements for
PgBouncer configuration when used with the exporter.
2024-08-08 05:54:45 +03:00
Sam Grimee b5d6de74ed nixos/librenms: fix lnms wrapper to ensure run by correct user
Complementary to the fix for #322344
2024-08-07 11:32:04 +02:00
Sam Grimee 4397a6d0a6 nixos/librenms: fix artisan wrapper
Fixes how the librenms-artisan wrapper passes arguments to allow invocations with multiple complex parameters to work.
2024-08-07 11:32:04 +02:00
Sam Grimee dc6c6e42e4 nixos/librenms: add socket auth for mysql
This allows librenms to use socket authentication to the mysql package out of the box if installed under
the same username, avoiding complex DB password initialization steps.
2024-08-07 11:32:04 +02:00
Guanran Wang ea6f4d5e86
treewide: remove periods from lib.mkEnableOption
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
2024-08-02 23:55:32 +08:00
Peter Hoeg c3392ad349 nixos/prometheus-smartctl-exporter: providing the path to the binary is no longer needed 2024-07-31 10:48:38 +02:00
Florian 6d0f55ef84
Merge pull request #328148 from NukaDuka/prometheus-pve-exporter
prometheus-pve-exporter: 3.2.4 -> 3.4.3
2024-07-26 20:21:21 +02:00
Sigmanificient 543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00
Franz Pletz b865ea167d
Merge pull request #321644 from pedorich-n/netdata-146 2024-07-23 23:23:30 +02:00
PopeRigby a5eaa1df10
nixos/scrutiny: enable collector by default if scrutiny is enabled (#329069) 2024-07-22 07:38:45 +01:00
Sandro 1607a42b49
Merge pull request #290452 from flandweber/borgmatic-exporter
borgmatic-exporter: init at 0.2.5
2024-07-17 19:08:28 +02:00
Kartik Gokte dbba11e241 nixos/prometheus-pve-exporter: added new options introduced in v3.4.3 2024-07-17 16:09:11 +05:30
Finn Landweber 0d58b75cba
added prometheus-borgmatic-exporter module 2024-07-16 12:17:49 +02:00
Sandro 10635f7d2a
Merge pull request #202068 from justinas/nginxlog-exporter-typed-options 2024-07-16 11:07:18 +02:00
Sandro 8f24fa52bb
Merge pull request #317488 from asbish/master
nixos/prometheus-snmp-exporter: add environmentFile option
2024-07-14 16:17:05 +02:00
Artur Faizullin 4e3c5fb713 nixos/opentelemetry-collector: Avoid using a fixed hardcoded path
Follow the boyscout rule.
2024-07-11 08:27:29 +02:00
Artur Faizullin 40013729d3 nixos/opentelemetry-collector: Use SupplementaryGroups to add the dynamic user to systemd-journal group
OpenTelemetry collector's Journald Receiver has not enough permissions
2024-07-11 08:23:20 +02:00
Artur Faizullin e304e2ee59 nixos/opentelemetry-collector: Accept changes from linter
Follow the boyscout rule.
2024-07-11 08:19:48 +02:00
Justinas Stankevicius a572d5151c nixos/prometheus-nginxlog-exporter: define types of inner options 2024-07-09 23:12:33 +03:00
Pol Dellaiera ed24a0baf3
Merge pull request #317107 from ibizaman/deluge_exporter_init
prometheus-deluge-exporter: init at 2.4.0-unstable-2024-06-02
2024-07-08 20:09:50 +02:00
Yu Ishii f210aaf4ca nixos/prometheus-snmp-exporter: add a parameter implicitly
Change to adding `--config.expand-environment-variables` parameter to
`ExecStart` if `environmentFile` option is set.
2024-07-07 16:49:31 +09:00
Yu Ishii 839bbc1700 nixos/prometheus-snmp-exporter: add environmentFile option
Prometheus snmp-exporter has support to pass sensitive data as environment
variables. Since other exporter configurations for NixOS have
environmentFile option, the same option is added to snmp-exporter.
2024-07-07 14:28:37 +09:00
Jonathan Davies 008ea18566
nixos/prometheus: Harden alertmanager/webhook-logger/pushgateway systemd definitions 2024-07-07 00:15:57 +01:00
Nikita Pedorich cba1e458a8
netdata: 1.45.4 -> 1.46.1 2024-07-04 23:00:09 +09:00