# SPDX-FileCopyrightText: 2024 Tom Hubrecht # # SPDX-License-Identifier: EUPL-1.2 { config, pkgs, ... }: let host = "nms.dgnum.eu"; in { imports = [ ./module.nix ]; services.librenms = { enable = true; package = (pkgs.librenms.override { inherit (config.services.librenms) dataDir logDir; }).overrideAttrs (old: { patches = (old.patches or [ ]) ++ [ ./kanidm.patch ]; vendorHash = "sha256-J/whSL1keEZKkfOtHpkJ2vSrN/s+DpUGb6RBXpQZQXg="; }); hostname = host; settings = { }; database = { createLocally = true; passwordFile = config.age.secrets."librenms-database_password_file".path; }; environmentFile = config.age.secrets."librenms-environment_file".path; nginx = { serverName = host; enableACME = true; forceSSL = true; }; }; age-secrets.autoMatch = [ "librenms" ]; }