diff --git a/nixos/modules/phoebus/olog.nix b/nixos/modules/phoebus/olog.nix index 63740dc4..0ac3a078 100644 --- a/nixos/modules/phoebus/olog.nix +++ b/nixos/modules/phoebus/olog.nix @@ -113,18 +113,8 @@ in { # TODO: systemd hardening. Currently level 8.2 EXPOSED }; }; - - services.elasticsearch = { - enable = true; - # Should be kept in sync with the phoebus-alarm-logger and phoebus-save-and-restore services - package = pkgs.elasticsearch7; - }; services.mongodb.enable = true; }; - meta = { - maintainers = with epnixLib.maintainers; [minijackson]; - # TODO: - # doc = ./olog.md; - }; + meta.maintainers = with epnixLib.maintainers; [minijackson]; } diff --git a/nixos/tests/phoebus/olog.nix b/nixos/tests/phoebus/olog.nix index 7adca693..3538ca30 100644 --- a/nixos/tests/phoebus/olog.nix +++ b/nixos/tests/phoebus/olog.nix @@ -7,12 +7,17 @@ meta.maintainers = with epnixLib.maintainers; [minijackson]; nodes = { - server = { + server = {pkgs, ...}: { services.phoebus-olog = { enable = true; settings."demo_auth.enabled" = true; }; + services.elasticsearch = { + enable = true; + package = pkgs.elasticsearch7; + }; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ # Elasticsearch can be used as an SSPL-licensed software, which is