Commit Graph

1495 Commits

Author SHA1 Message Date
jopejoe1
dca7e827b3 nixos: Replace custom cfg format handling with pkgs.formats (#314933) 2025-03-14 21:08:14 +01:00
xanderio
6607cf789e nixos/librenms: regenerate caches after every package change (#388914) 2025-03-13 08:39:42 +01:00
Jennifer Graul
232494bd5c nixos/librenms: regenerate caches after every package change
The LibreNMS cache may contain paths to the old package and may break
when the old package is removed. So it is not enough to clear the cache
only on version updates, as the package will also change when build
inputs change.

This commit updates the setup script to regenerate the cache on every
package change. In addition, it now only performs migrations when the
package version has changed, since the migrations only change on version
updates and don't need to be applied on every package change.
2025-03-11 08:48:54 +01:00
Alexander Sieg
6fdc890e79 nixos/alloy: automaticlly include all .alloy files in reload trigger 2025-03-10 10:13:59 +01:00
shelvacu
1a4575f9db nixos/modules: Add security.pki.caBundle option and make all services use it for CA bundles (#352244)
Previously some modules used `config.environment.etc."ssl/certs/ca-certificates.crt".source`, some used `"/etc/ssl/certs/ca-certificates.crt"`, and some used `"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"`. These were all bad in one way or another:

- `config.environment.etc."ssl/certs/ca-certificates.crt".source` relies on `source` being set; if `text` is set instead this breaks, introducing a weird undocumented requirement
- `"/etc/ssl/certs/ca-certificates.crt"` is probably okay but very un-nix. It's a magic string, and the path doesn't change when the file changes (and so you can't trigger service reloads, for example, when the contents change in a new system activation)
- `"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"` silently doesn't include the options from `security.pki`

Co-authored-by: Shelvacu <git@shelvacu.com>
2025-03-08 08:41:08 +00:00
Sandro
5ca7fffe87 nezha: 0.20.3 -> 1.9.5; nezha-agent: 0.20.5 -> 1.9.2; nixos/nezha-agent: refactor (#361515) 2025-03-05 17:38:42 +01:00
Thomas Gerbet
ee2c1b8352 nixos/osquery: fix database_path + logger_path opts per systemd docs (#370003) 2025-03-04 14:51:12 +01:00
Moraxyc
1235bed1b5 nixos/nezha-agent: refactor 2025-03-04 18:08:04 +08:00
bstanderline
d784db18f2 nixos/osquery: set default database_path and logger_path 2025-03-04 09:43:07 +00:00
K900
80b437dfa7 nixos/pgscv: init 2025-03-02 08:39:29 +03:00
Sandro
53cf148d36 nixos/prometheus: use the non-alias path for dovecot exporter (#380619) 2025-02-22 21:02:09 +01:00
Sandro
8a3e6de4bd alertmanager-gotify-bridge: init at 2.3.2 (#378055) 2025-02-17 23:23:20 +01:00
Julian Kuhn
a919728213 nixos/alertmanager-gotify-bridge: init module 2025-02-16 22:38:04 +01:00
Jeremy Fleischman
c263be1dee nixos/prometheus: add missing dns_sd_configs types
From
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config:

> The type of DNS query to perform. One of SRV, A, AAAA, MX or NS.

I also simplified the doc string as it's redundant with the generated
docs.
2025-02-16 23:46:29 +07:00
commiterate
b2b7d1c7de nixos/amazon-cloudwatch-agent: condense module options 2025-02-15 15:13:15 -05:00
Nick Cao
2a6b728b2e nixos/glpi-agent: fix missing directory (#381476) 2025-02-13 19:57:35 -05:00
Tristan Ross
8005d0910b prometheus-node-cert-exporter: init at 1.1.7 (#368325) 2025-02-12 12:34:24 -08:00
dish
e5df3a7507 nixos/scrutiny: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
d4151d6a2e nixos/osquery: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
376f9ab682 nixos/opentelemetry-collector: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
fc931a8419 nixos/longview: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
27971205fd nixos/librenms: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
4ac1cca61a nixos/glances: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
359c9a41d5 nixos/bosun: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
77ee605948 nixos/prometheus: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
fa7399c650 nixos/prometheus/exporters: fix documentation link formatting 2025-02-12 21:03:21 +01:00
liberodark
fbe520b3a9 nixos/glpi-agent: fix missing directory 2025-02-12 15:58:03 +01:00
NotAShelf
bb6f723f33 nixos/prometheus: use the non-alias path for dovecot exporter 2025-02-12 01:41:55 +03:00
Tom Herbers
5abb11bbe7 nixos/bird: rename bird2 to bird, switch to bird3 by default
This is done in view of the Release of the new v3 of Bird.

Switch to the bird3 package for the `services.bird.package` option.

Switch the `bird` package alias to bird3.
2025-02-06 16:35:44 +01:00
Sandro
6adcf70baf nixos/glpi-agent: init (#361759) 2025-02-04 10:24:53 +01:00
Anton Tetov
494b2407ef nixos/prometheus-restic-exporter: set cache dir (#378228)
* nixos/prometheus-restic-exporter: set cache dir

* prometheus-restic-exporter: use systemd variable for cachedir
2025-02-03 21:50:02 +01:00
Ilan Joselevich
fbd78fe40d nixos/grafana-to-nfy: init 2025-02-03 02:17:26 +02:00
Peder Bergebakken Sundt
953f72e76e nixos/*: tag manpage references 2025-01-27 02:47:01 +01:00
Maciej Krüger
8def3ffa62 nixos/netdata: fix permissions for some collectors (#340073) 2025-01-24 13:56:54 +01:00
liberodark
6a5dff7af0 nixos/glpi-agent: init 2025-01-20 19:11:05 +01:00
elratt0r
c460b15aa0 cockpit: fix listen port (#371245) 2025-01-18 00:04:09 +01:00
Nico Felbinger
7bb9f739ef prometheus-frr-exporter: fix communication to frr unix socket 2025-01-13 20:33:09 +01:00
piegames
603733851b treewide: Fix incorrect string escapes 2025-01-07 19:49:28 +01:00
Nikita Pedorich
b4bcec16a0 nixos/netdata: grant SUID to ndsudo 2025-01-05 15:44:07 +09:00
Martin Weinelt
62f35da2a1 nixos/prometheus-exporters/fastly: fix secret handling
The exporter expects the token as an environment variable, not a path
to the file containing the token.
2025-01-04 17:48:56 +01:00
bstanderline
29b42bd731 nixos/osquery: fix database_path + logger_path opts per systemd docs
nixos/osquery: Update tests with option changes
2025-01-01 16:37:14 +00:00
lucasew
b06a23a614 cockpit: 330 -> 331
Signed-off-by: lucasew <lucas59356@gmail.com>
2024-12-28 16:10:39 -03:00
Jennifer Graul
b4e9af0022 nixos/librenms: fix optimizations and view cache on new installations
The optimizations and view-cache require an initialized database to
work, so the current state breaks new installations. This commit fixes
that by performing the optimizations and view caching after the database
migrations.
2024-12-27 11:59:00 +01:00
ibizaman
1f52ec9f95 prometheus-node-cert-exporter: init at 1.1.7-unstable-2024-12-26 2024-12-26 14:21:30 +01:00
Sandro
c161f61057 prometheus-frr-exporter: init prometheus exporter module (#313651) 2024-12-25 03:49:52 +01:00
Alexander Sieg
db087bfef3 nixos/librenms: enable optimizations and view-cache (#367679) 2024-12-23 19:18:36 +01:00
Philip Taron
297e5bb009 amazon-cloudwatch-agent: let users specify configuration file paths (#358559) 2024-12-23 09:57:18 -08:00
Jennifer Graul
6abc69d2cf nixos/librenms: enable optimizations and view-cache
Enables optimizations and view cache for the librenms module.
Optimizations and view cache are both regenerated with each package
update.
2024-12-23 17:11:42 +01:00
Nico Felbinger
578c5b6583 prometheus-frr-exporter: init prometheus exporter module 2024-12-23 15:17:45 +01:00
Arne Keller
694f4998c9 nixos/netdata: copy apps_groups.conf instead of symlink (#356313) 2024-12-23 09:04:21 +01:00