nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

kodi.nix (509B)


      1 { pkgs, username, ... }:
      2 
      3 {
      4   # Package and Addons
      5   environment.systemPackages = with pkgs; [
      6     (kodi-wayland.withPackages (kodiPkgs: with kodiPkgs; [
      7       a4ksubtitles
      8       inputstream-adaptive
      9       somafm
     10       upnext
     11       youtube
     12     ]))
     13   ];
     14 
     15   # Firewall rules
     16   networking.firewall = {
     17       allowedTCPPorts = [ 8080 ];
     18       allowedUDPPorts = [ 8080 ];
     19     };
     20 
     21   # Extra groups for Kodi CEC input
     22   users.users.${username}.extraGroups = [ "networkmanager" "wheel" "input" "dialout" "video" ];
     23 }