rp3b: add kodi
This commit is contained in:
parent
4dee4159e7
commit
51a24ccfcf
1
data.nix
1
data.nix
@ -13,6 +13,7 @@ rec {
|
|||||||
exporters = {
|
exporters = {
|
||||||
node = 9002;
|
node = 9002;
|
||||||
};
|
};
|
||||||
|
kodi = 8080;
|
||||||
};
|
};
|
||||||
|
|
||||||
people_pubkeys = {
|
people_pubkeys = {
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user