1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/tests/modules/programs/mpv/mpv-invalid-settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

30 lines
475 B
Nix

{
config,
lib,
pkgs,
...
}:
{
programs.mpv = {
enable = true;
package = pkgs.emptyDirectory;
scripts = [ pkgs.mpvScript ];
};
test.stubs = {
mpv = {
extraAttrs.override = { ... }: pkgs.emptyDirectory;
};
mpvScript = {
extraAttrs = {
scriptName = "something";
};
};
};
test.asserts.assertions.expected = [
''The programs.mpv "package" option is mutually exclusive with "scripts" option.''
];
}