rp3b: add kodi

This commit is contained in:
Motiejus Jakštys 2023-08-16 22:59:39 +03:00
parent 4dee4159e7
commit 51a24ccfcf
2 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,7 @@ rec {
exporters = { exporters = {
node = 9002; node = 9002;
}; };
kodi = 8080;
}; };
people_pubkeys = { people_pubkeys = {

View File

@ -73,6 +73,11 @@
pulse.enable = true; pulse.enable = true;
}; };
users.extraUsers.kodi.isNormalUser = true;
services.cage.user = "kodi";
services.cage.program = "${pkgs.kodi-wayland}/bin/kodi-standalone";
services.cage.enable = true;
networking = { networking = {
hostId = "4bd17751"; hostId = "4bd17751";
hostName = "vno1-rp3b"; hostName = "vno1-rp3b";
@ -86,8 +91,8 @@
} }
]; ];
firewall = { firewall = {
allowedUDPPorts = []; allowedUDPPorts = [myData.ports.kodi];
allowedTCPPorts = []; allowedTCPPorts = [myData.ports.kodi];
logRefusedConnections = false; logRefusedConnections = false;
checkReversePath = "loose"; # for tailscale checkReversePath = "loose"; # for tailscale
}; };
@ -104,6 +109,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
libraspberrypi libraspberrypi
(kodi.passthru.withPackages (kodiPkgs: [kodiPkgs.youtube]))
]; ];
nixpkgs.hostPlatform = "aarch64-linux"; nixpkgs.hostPlatform = "aarch64-linux";