mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 12:49:44 +01:00
cbc176010b
Kodi is a media center software.
33 lines
610 B
Nix
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}
|
|
'';
|
|
}
|