feat(rpi4): add kodi
This commit is contained in:
parent
f06a02251a
commit
7fbaa7b875
1
rpi4.nix
1
rpi4.nix
|
@ -8,6 +8,7 @@ with builtins; {
|
|||
./system/nix.nix
|
||||
./system/i18n.nix
|
||||
./services/syncthing/rpi4.nix
|
||||
./services/kodi.nix
|
||||
./services/jellyfin.nix
|
||||
./services/etebase.nix
|
||||
./services/home-assistant.nix
|
||||
|
|
24
services/kodi.nix
Normal file
24
services/kodi.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.xserver.enable = true;
|
||||
services.xserver.desktopManager.kodi.enable = true;
|
||||
services.xserver.displayManager.autoLogin.enable = true;
|
||||
services.xserver.displayManager.autoLogin.user = "kodi";
|
||||
|
||||
users.extraUsers.kodi.isNormalUser = true;
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 8080 ];
|
||||
allowedUDPPorts = [ 8080 ];
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
(pkgs.kodi.override {
|
||||
plugins = with pkgs.kodiPlugins; [
|
||||
advanced-launcher
|
||||
pkgs.nur.repos.marzipankaiser.kodiPlugins.netflix
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue