home-manager/tests/modules/programs/mpv/mpv-invalid-settings.nix

17 lines
318 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
2024-02-03 18:39:45 +00:00
imports = [ ./mpv-stubs.nix ];
2024-02-03 18:39:45 +00:00
programs.mpv = {
enable = true;
package = pkgs.emptyDirectory;
scripts = [ pkgs.mpvScript ];
};
2024-02-03 18:39:45 +00:00
test.asserts.assertions.expected = [
''
The programs.mpv "package" option is mutually exclusive with "scripts" option.''
];
}