commit 51a24ccfcf7763c7c596a68752e7fa13baf3e920 (tree)
parent 4dee4159e7b00f343e9a682831717048c34300e1
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Wed, 16 Aug 2023 22:59:39 +0300
rp3b: add kodi
Diffstat:
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git 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
@@ -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";