bundlewrap/bundles/kodi/metadata.py
Sophie Schiller b949ba3e72
All checks were successful
bundlewrap/pipeline/head This commit looks good
bw/home.kodi-wohnzimmer update to bullseye
2021-06-23 18:07:43 +02:00

56 lines
1.3 KiB
Python

from bundlewrap.metadata import atomic
defaults = {
'apt': {
'repos': {
'deb-multimedia': {
'items': {
'deb https://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ {os_release} main',
#'deb https://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ {os_release}-backports main',
},
},
},
'packages': {
'cec-utils': {},
'fonts-noto': {},
'fonts-roboto': {},
'kodi': {},
'kodi-inputstream-adaptive': {},
'libasound2': {},
'libcec4': {},
'ttf-mscorefonts-installer': {},
'tv-fonts': {},
'xfonts-base': {},
'xinit': {},
'xserver-xorg': {},
'xserver-xorg-legacy': {},
},
},
'backups': {
'paths': {
'/home/kodi',
},
},
'users': {
'kodi': {
'groups': {
'audio',
'tty',
'video',
},
},
},
}
@metadata_reactor.provides(
'firewall/port_rules/8080',
)
def firewall(metadata):
return {
'firewall': {
'port_rules': {
'8080': atomic(metadata.get('kodi/restrict-to', {'*'})),
},
},
}