mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 17:59:39 +01:00
28 lines
458 B
Nix
28 lines
458 B
Nix
{
|
|
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.''
|
|
];
|
|
}
|