commit 735688a1f8a7a330305429be4674dee2ac882b54
parent f1c944b7ae8de58cfc35bada92eb7090fab0b4c9
Author: breadcat <breadcat@users.noreply.github.com>
Date: Sun, 24 Aug 2025 12:42:10 +0100
Move kodi specific includes to common file
Diffstat:
2 files changed, 16 insertions(+), 19 deletions(-)
diff --git a/common/kodi.nix b/common/kodi.nix
@@ -0,0 +1,15 @@
+{ pkgs, username, ... }:
+
+{
+ # Package
+ environment.systemPackages = with pkgs; [ kodi-wayland ];
+
+ # Firewall rules
+ networking.firewall = {
+ allowedTCPPorts = [ 8080 ];
+ allowedUDPPorts = [ 8080 ];
+ };
+
+ # Extra groups for Kodi CEC input
+ users.users.${username}.extraGroups = [ "networkmanager" "wheel" "input" "dialout" "video" ];
+}
diff --git a/machines/arcadia.nix b/machines/arcadia.nix
@@ -18,6 +18,7 @@ in
../common/flakes.nix
../common/garbage.nix
(import ../common/hyprland.nix {inherit pkgs username;})
+ (import ../common/kodi.nix {inherit pkgs username;})
(import ../common/locale.nix {inherit config pkgs timezone;})
../common/mount-drives.nix
../common/nfs.nix
@@ -58,25 +59,6 @@ in
};
- # Packages
- environment.systemPackages = with pkgs; [
- # duckstation
- kodiPackages.inputstream-adaptive
- kodi-wayland
- moonlight-qt
- mpv
- # spotify
- yt-dlp
- ];
-
- # Kodi settings
- # HDMI CEC input groups
- users.users.${username}.extraGroups = [ "networkmanager" "wheel" "input" "dialout" "video" ]; # Extra groups for Kodi CEC input
-
- # Web UI firewall rules
- networking.firewall.allowedTCPPorts = [ 8080 ];
- networking.firewall.allowedUDPPorts = [ 8080 ];
-
system.stateVersion = "24.11";
}