1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00
home-manager/tests/modules/programs/kodi/example-sources.nix
Daniel Wagenknecht cbc176010b
kodi: add module
Kodi is a media center software.
2022-01-26 23:56:25 +01:00

34 lines
610 B
Nix

{ config, ... }:
{
programs.kodi = {
enable = true;
package = config.lib.test.mkStubPackage { };
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}
'';
}