This configuration was written by @fucksophie, for the Lenovo Yoga 510 14ISK-80S7. I upgraded the ram in mine ages ago to 8 gigabytes instead of four. I reccomend for you to do the same.
Info:
- This configuration has specific configuration for fixing the S/PDIF (actually HDMI) part of the Intel HDA audio card.
Remove them if you know that HDMI audio works with your laptop & pulseaudio. (Line 39, and lines 41-54) - This has bluetooth support, remove basically anything that has bluetooth in it if you don't want that.
- This also uses kodi-wayland, as I had way better performance with it and a 100x easier setup via
cage. - PIL is broken on NixOS + Kodi, for some reason. It has been dropping out with certain configurations, and if it doesn't work for you there's a script in the tutorial.
Tutorial:
- Install NixOS
- Change
sophieto your own name - Change stateVersion to your own stateVersion
- Set your channels to use nixos-unstable
sudo nixos-rebuild boot && sudo reboot now- Go into root, change password for your account (via ssh)
- Install artic fuse 2, if PIL is broken run this
sudo -u kodi bash -c '
mkdir -p ~/.kodi/addons/script.module.pil/lib &&
cp -ar /nix/store/$(basename $(readlink -f $(nix eval --raw nixpkgs#python3.pkgs.pillow)))/lib/python3.*/site-packages/* ~/.kodi/addons/script.module.pil/lib/ &&
cp -ar /nix/store/$(basename $(readlink -f $(nix eval --raw nixpkgs#kodi)))/share/kodi/addons/script.module.pil ~/.kodi/addons/
'- Install other stuff like tubecast & youtube