1 import ./make-test-python.nix ({ pkgs, lib, ...} :
5 meta.maintainers = with lib.maintainers; [ hexa ];
8 machine = { config, ... }: {
9 networking.extraHosts = ''
10 127.0.0.1 all.api.radio-browser.info
15 registerName = "NixOS tests";
18 services.botamusique = {
22 channel = "NixOS tests";
26 auto_check_update = false;
36 machine.wait_for_unit("murmur.service")
37 machine.wait_for_unit("botamusique.service")
41 machine.wait_until_succeeds(
42 "journalctl -u murmur.service -e | grep -q '<1:botamusique(-1)> Authenticated'"
45 with subtest("Check systemd hardening"):
46 output = machine.execute("systemctl show botamusique.service")[1]
48 output = machine.execute("systemd-analyze security botamusique.service")[1]