mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 02:36:54 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
30 lines
576 B
Nix
30 lines
576 B
Nix
{
|
|
imports = [ ./kodi-stubs.nix ];
|
|
|
|
programs.kodi = {
|
|
enable = true;
|
|
sources = {
|
|
video = {
|
|
default = "movies";
|
|
source = [
|
|
{
|
|
name = "videos";
|
|
path = "/path/to/videos";
|
|
allowsharing = "true";
|
|
}
|
|
{
|
|
name = "movies";
|
|
path = "/path/to/movies";
|
|
allowsharing = "true";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.kodi/userdata/sources.xml \
|
|
${./example-sources-expected.xml}
|
|
'';
|
|
}
|