nix-configs

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

commit 21f36bc583ff64d2d47dec98b8da4b08329986f3
parent 83f7099997b0d369b86fa6b1b166a1f7113a1013
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Sat, 20 Dec 2025 15:10:49 +0000

Including addons in Kodi, remove launcher script

Diffstat:
Mcommon/kodi.nix | 12++++++++++--
Mhome/kodi.nix | 4++--
Mmachines/arcadia.nix | 1-
Dscripts/htpc-launcher.nix | 11-----------
4 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/common/kodi.nix b/common/kodi.nix @@ -1,8 +1,16 @@ { pkgs, username, ... }: { - # Package - environment.systemPackages = with pkgs; [ kodi-wayland ]; + # Package and Addons + environment.systemPackages = with pkgs; [ + (kodi-wayland.withPackages (kodiPkgs: with kodiPkgs; [ + a4ksubtitles + inputstream-adaptive + somafm + upnext + youtube + ])) + ]; # Firewall rules networking.firewall = { diff --git a/home/kodi.nix b/home/kodi.nix @@ -52,10 +52,10 @@ }; }; }; - # Launch Kodi (and fix fullscreen issue) via Hyprland + # Launch Kodi via Hyprland wayland.windowManager.hyprland = { settings = { - "exec-once" = "htpc-launcher"; + "exec-once" = "kodi"; }; }; } diff --git a/machines/arcadia.nix b/machines/arcadia.nix @@ -23,7 +23,6 @@ let machine = "arcadia"; in { ../common/ssh.nix ../common/syncthing.nix ../common/user.nix - ../scripts/htpc-launcher.nix ]; home-manager.users.${username} = {pkgs, ...}: { imports = [ ../home/alacritty.nix diff --git a/scripts/htpc-launcher.nix b/scripts/htpc-launcher.nix @@ -1,11 +0,0 @@ -{pkgs, ...}: let - htpc-launcher = pkgs.writeShellScriptBin "htpc-launcher" '' - kodi & - sleep 4 - kodi-send -a toggleFullscreen - sleep 1 - kodi-send -a toggleFullscreen - ''; -in { - environment.systemPackages = [htpc-launcher]; -}