From a761838c48dbb9ae4e6d4a784f56211d456b543d Mon Sep 17 00:00:00 2001 From: schnusch Date: Mon, 23 Feb 2026 23:24:10 +0100 Subject: [PATCH] nixosTests.mpv: ensure /etc/mpv/mpv.conf is loaded --- nixos/tests/mpv.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/tests/mpv.nix b/nixos/tests/mpv.nix index 07d8b9fb3b96..6934dbc35d45 100644 --- a/nixos/tests/mpv.nix +++ b/nixos/tests/mpv.nix @@ -16,9 +16,14 @@ in scripts = [ pkgs.mpvScripts.simple-mpv-webui ]; }) ]; + + environment.etc."mpv/mpv.conf".text = '' + [nixos-test-profile] + ''; }; testScript = '' + machine.succeed("mpv --profile=help | grep -F nixos-test-profile") machine.execute("set -m; mpv --script-opts=webui-port=${port} --idle=yes >&2 &") machine.wait_for_open_port(${port}) assert "simple-mpv-webui" in machine.succeed("curl -s localhost:${port}")