From 51a24ccfcf7763c7c596a68752e7fa13baf3e920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 16 Aug 2023 22:59:39 +0300 Subject: [PATCH] rp3b: add kodi --- data.nix | 1 + hosts/vno1-rp3b/configuration.nix | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/data.nix b/data.nix index 856dc23..9c11d39 100644 --- a/data.nix +++ b/data.nix @@ -13,6 +13,7 @@ rec { exporters = { node = 9002; }; + kodi = 8080; }; people_pubkeys = { diff --git a/hosts/vno1-rp3b/configuration.nix b/hosts/vno1-rp3b/configuration.nix index 6de2e05..16b9cb0 100644 --- a/hosts/vno1-rp3b/configuration.nix +++ b/hosts/vno1-rp3b/configuration.nix @@ -73,6 +73,11 @@ 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 = { hostId = "4bd17751"; hostName = "vno1-rp3b"; @@ -86,8 +91,8 @@ } ]; firewall = { - allowedUDPPorts = []; - allowedTCPPorts = []; + allowedUDPPorts = [myData.ports.kodi]; + allowedTCPPorts = [myData.ports.kodi]; logRefusedConnections = false; checkReversePath = "loose"; # for tailscale }; @@ -104,6 +109,7 @@ environment.systemPackages = with pkgs; [ libraspberrypi + (kodi.passthru.withPackages (kodiPkgs: [kodiPkgs.youtube])) ]; nixpkgs.hostPlatform = "aarch64-linux";