1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 18:16:21 +03:00
Commit graph

17 commits

Author SHA1 Message Date
Sandro Jäckel
314cfdddb5
nixos/librenms: seed database in module, not only in test
To properly use librenms and create a user, you need the seeded roles
like admin.
2025-05-13 14:24:27 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02: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
dish
27971205fd nixos/librenms: fix documentation link formatting 2025-02-12 21:03:21 +01: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
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
Ryan Horiguchi
d512e07338 nixos/librenms: add package option and expose package 2024-12-13 01:18:08 +01:00
Ryan Horiguchi
7241f54c9f nixos/librenms: use db socket when set 2024-12-13 01:18:08 +01:00
Marcel
8153ad4458
nixos/librenms: order librenms-setup after network.target
librenms-setup requires database access; when deploying databases externally, networking is required.
2024-12-09 21:15:19 +01:00
Jennifer Graul
7e2f76a187
nixos/librenms: add netali to maintainers 2024-12-03 12:27:53 +01:00
Jennifer Graul
4bac8c5de5
nixos/librenms: fix links in docs 2024-12-03 12:27:52 +01:00
Jennifer Graul
c59a8279ae
nixos/librenms: add enableLocalBilling option 2024-12-03 12:27:52 +01:00
Jennifer Graul
c0efae7559
nixos/librenms: add default php_memory_limit and use it in cronjobs 2024-12-03 12:27:51 +01: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
Jennifer Graul
e94820dfb2 nixos/librenms: init 2023-10-16 13:28:22 +02:00