nix-configs

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

kodi.nix (495B)


      1 { pkgs, vars, ... }:
      2 
      3 {
      4   # Package and Addons
      5   environment.systemPackages = with pkgs; [ kodi-wayland ];
      6 
      7   # Firewall rules
      8   networking.firewall = {
      9       allowedTCPPorts = [ 8080 ];
     10       allowedUDPPorts = [ 8080 ];
     11     };
     12 
     13   # Extra groups for Kodi CEC input
     14   users.users.${vars.user.username}.extraGroups = [ "networkmanager" "wheel" "input" "dialout" "video" ];
     15 
     16   # Fix timezone zoneinfo
     17   systemd.tmpfiles.rules = [ "L+ /usr/share/zoneinfo - - - - ${pkgs.tzdata}/share/zoneinfo" ];
     18 }