nixos-combined-flake/modules/home-manager/mediacenter/kodi/advancedsettings.nix

79 lines
1.8 KiB
Nix

{vars,...}: let
inherit (vars) timeZone hostName domain;
datadirs = "smb://svartalbenheim.odie.intranet/kodi/userdata";
mysql = {
port = 3306;
user = "kodi";
pass = "kodi";
};
in {
advancedsettings = {
addons = {
unknownsourcecs = true;
};
services = {
devicename = "${hostName}.${domain}";
webserver = true;
webserverauthentication = false;
webserverusername = "kodi";
webserverpassword = "kodi";
webserverport = 8000;
webserverssl = false;
zeroconf = true;
wsdiscovery = true;
upnp = true;
upnpserver = true;
airplay = true;
airplayvideosupport = true;
};
locale = {
language = "resource.language.de_de";
country = "Deutschland";
timezone = timeZone;
};
lookandfeed = {
enablerssfeeds = false;
};
videodatabase = {
type = "mysql";
inherit (mysql) user pass port;
};
musicdatabase = {
type = "mysql";
inherit (mysql) user pass port;
};
videolibrary = {
importwatchedstate = true;
importresumepoint = true;
};
pathsubstitution = {
substitute = [
{
from = "special://profile/playlists/";
to = "${datadirs}/playlists/";
}
{
from = "special://profile/sources.xml";
to = "${datadirs}/sources.xml";
}
{
from = "special://profile/mediasources.xml";
to = "${datadirs}/mediasources.xml";
}
{
from = "special://profile/RssFeeds.xml";
to = "${datadirs}/RssFeeds.xml";
}
{
from = "special://profile/favourites.xml";
to = "${datadirs}/favourites.xml";
}
{
from = "special://profile/passwords.xml";
to = "${datadirs}/passwords.xml";
}
];
};
};
}