From 1c3cacdd076d885aa0d32229fb3462e7a5c64785 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 16 Jan 2023 19:37:48 +0100 Subject: [PATCH] introducing proper jellyfin --- nixos/machines/pepe/configuration.nix | 3 +-- .../pepe/home-assistant/zigbee2mqtt/temperatur.nix | 2 +- nixos/machines/pepe/jellyfin.nix | 6 ++++++ nixos/system/all/nginx-landingpage.nix | 7 ++++++- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 nixos/machines/pepe/jellyfin.nix diff --git a/nixos/machines/pepe/configuration.nix b/nixos/machines/pepe/configuration.nix index d4a279c..acebc02 100644 --- a/nixos/machines/pepe/configuration.nix +++ b/nixos/machines/pepe/configuration.nix @@ -20,6 +20,7 @@ ./grocy.nix ./taskwarrior-pushover.nix #./neo4j.nix + ./jellyfin.nix ]; @@ -62,8 +63,6 @@ services.printing.enable = false; services.smartd.enable = true; - - # todo move to some place else home-manager.users.mailUser.home.stateVersion = "22.11"; diff --git a/nixos/machines/pepe/home-assistant/zigbee2mqtt/temperatur.nix b/nixos/machines/pepe/home-assistant/zigbee2mqtt/temperatur.nix index 4513e65..d80ee5f 100644 --- a/nixos/machines/pepe/home-assistant/zigbee2mqtt/temperatur.nix +++ b/nixos/machines/pepe/home-assistant/zigbee2mqtt/temperatur.nix @@ -28,6 +28,6 @@ in allDevices; - }; +}; } diff --git a/nixos/machines/pepe/jellyfin.nix b/nixos/machines/pepe/jellyfin.nix new file mode 100644 index 0000000..02e4aee --- /dev/null +++ b/nixos/machines/pepe/jellyfin.nix @@ -0,0 +1,6 @@ +{ config, lib, pkgs, ... }: +{ + services.jellyfin.enable = true; + services.jellyfin.openFirewall = true; + users.groups."syncthing".members = [ "jellyfin" ]; +} diff --git a/nixos/system/all/nginx-landingpage.nix b/nixos/system/all/nginx-landingpage.nix index 66814c8..2f178a6 100644 --- a/nixos/system/all/nginx-landingpage.nix +++ b/nixos/system/all/nginx-landingpage.nix @@ -31,7 +31,7 @@ ]); } { - text = "IoT"; + text = "Home"; items = [ { label = "HomeAssistant"; @@ -43,6 +43,11 @@ href = "http://pepe.private:9666/"; image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; } + { + label = "Jellyfin"; + href = "http://pepe:8096/"; + image = "https://media.giphy.com/media/fyLi0OuWysotq/giphy.gif"; + } ]; } {