depot/third_party/home-manager/tests/modules/programs/kodi/example-sources.nix
Default email 2eafb8192e Project import generated by Copybara.
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
2023-01-10 02:35:00 -07:00

33 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}
'';
}