Commit Graph

1346 Commits

Author SHA1 Message Date
Florian
07ca74e134
teamviewer: add services.teamviewer.package Option + misc improvemens (#346365) 2024-11-10 11:44:54 +01:00
Franz Pletz
0fc41ad977
treewide: Remove ineffective capability grants. (#333533) 2024-11-06 08:12:51 +01:00
Sandro
0f807cf281
nixos/rustdesk-server: suppport enable rustdesk's signal server and relay server seperately and rename an option (#333023) 2024-10-31 02:22:24 +01:00
Wim de With
93cce0becc nixos/prometheus: remove tor exporter 2024-10-30 19:42:51 +01:00
Moraxyc
68b122d2f6
nixos/nezha-agent: add extraFlags 2024-10-29 01:34:36 +08:00
Zhaofeng Li
67bef9e807
nixos/prometheus: Add AWS Signature Version 4 support to remote_write configs (#181883) 2024-10-26 01:24:30 +02:00
Moraxyc
61567875e5
nixos/nezha-agent: add some options for new features 2024-10-23 20:22:37 +08:00
Ramses
f73e31408d
prometheus-klipper-exporter: init at v0.11.2 (#348187) 2024-10-23 09:48:17 +02:00
Wulfsta
e13a31e4bf prometheus-klipper-exporter: init at v0.11.2 2024-10-23 01:55:47 -04:00
Aleksana
8897c79d61
nixos/netdata: remove changefinder (#339803) 2024-10-19 16:02:59 +08:00
Bjørn Forsman
21529d1813 nixos/ups: shutdown UPS at host shutdown
Implement the missing bit of the NUT shutdown design[1]. This ensures
that machines come back up automatically after a power outage. (Without
this change they will only come back up if the UPS completely empties
its battery.)

[1] https://networkupstools.org/docs/user-manual.chunked/Configuration_notes.html#Shutdown_design
2024-10-13 17:55:52 +02:00
Bjørn Forsman
3b781a1e72 nixos/ups: document default upsmon MONITOR value 2024-10-13 17:55:52 +02:00
Bjørn Forsman
2b90f4cdb3 nixos/ups: sort settings attributes
They're listed twice (documentation and implementation) and this change
makes it easier to compare the attrsets.
2024-10-13 17:55:52 +02:00
Bjørn Forsman
40bfbe3226 nixos/scrutiny: wait until ready
Add postStart code that waits until Scrutiny has opened its port. This
fixes a race condition against scrutiny-collector, which can start (and
fail) before scrutiny is ready.
2024-10-06 20:07:45 +02:00
h7x4
d783411040
nixos: improve systemd slice names (#345990) 2024-10-04 12:08:36 +02:00
Philipp Schuster
04dbbd4365 teamviewer: introduce services.teamviewer.package option
Teamviewer only works with its daemon. Therefore, having programs.teamviewer.enable
is not the design currently chosen to add teamviewer. Instead, the
servies.teamviewer.enable option enables both the daemon and the system package.
2024-10-04 09:47:14 +02:00
Philipp Schuster
2928912a7c teamviewer: remove "with lib;" 2024-10-04 09:47:14 +02:00
Philipp Schuster
89ecd03131 teamviewer: format file
Streamline the formatting to match other files.
2024-10-04 09:47:13 +02:00
Bjørn Forsman
e6d7bbf71d nixos/prometheus-dnsmasq-exporter: use a working default leasesPath
dnsmasq dhcp-leasefile defaults to /var/lib/dnsmasq/dnsmasq.leases, so
use that as the default for the exporter too. Curiously, the example was
using the working path, so this patch simply swaps "example" and
"default" values.
2024-10-03 23:06:09 +02:00
Domen Kožar
e873268a35
nixos/datadog-agent: fix deprecated trace agent option (#336546) 2024-10-03 16:15:08 +01:00
Bjørn Forsman
48908e5b86 nixos: improve systemd slice names
Following
https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Description=,
update slice names to be short, descriptive and capitalized.
2024-10-02 20:24:13 +02:00
Pol Dellaiera
075be3e70b
nixos/gatus: init module (#294469) 2024-10-02 11:08:14 +02:00
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
Pim Kunis
f1daa46d45 nixos/gatus: init module 2024-09-19 21:34:10 +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
wrvsrx
97f1e5df09
nixos/rustdesk-server: suppport enable rustdesk's signal server and relay server seperately and rename an option
In theory, we can use one server as rustdesk's signal server and another
one as rustdesk's relay server. This PR allows such behavior.

This PR also renames `relayIP` to `relayHosts` since we can specify dns
name or ip as a relay server.
2024-09-06 21:48:42 +08:00
Ryan Horiguchi
53db73d61e nixos/netdata: remove changefinder 2024-09-05 15:48:43 +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
Sander
0cdf53a57f
nixos/datadog-agent: fix deprecated trace agent option 2024-08-22 13:38:57 +00:00