From 93e1024ab66a4d8dcec1d265d77cc88e068950a8 Mon Sep 17 00:00:00 2001 From: batvin321 Date: Thu, 30 Jan 2025 14:24:55 -0500 Subject: [PATCH] removed jellyfin config to flake --- configuration.nix | 46 ---------------------------------------------- flake.nix | 11 ++--------- 2 files changed, 2 insertions(+), 55 deletions(-) diff --git a/configuration.nix b/configuration.nix index 67c179c..c5ec261 100644 --- a/configuration.nix +++ b/configuration.nix @@ -96,52 +96,6 @@ # define jellyfin services.jellyfin = { enable = true; - openFirewall = true; - settings = { - system = { - serverName = "Jellyfin"; - quickConnectAvailable = false; - isStartupWizardCompleted = true; - - enableGroupingIntoCollections = true; - enableExternalContentInSuggestions = false; - - pluginRepositories = [ - { - name = "Jellyfin Stable"; - url = "https://repo.jellyfin.org/releases/plugin/manifest-stable.json"; - } - { - name = "Intro Skipper"; - url = "https://raw.githubusercontent.com/jumoog/intro-skipper/master/manifest.json"; - } - { - name = "Merge Versions Plugin"; - url = "https://raw.githubusercontent.com/danieladov/JellyfinPluginManifest/master/manifest.json"; - } - ]; - - enableSlowResponseWarning = false; - }; - encoding = { - hardwareAccelerationType = "qsv"; - hardwareDecodingCodecs = [ - "h264" - "hevc" - "mpeg2video" - "mpeg4" - "vc1" - "vp8" - "vp9" - "av1" - ]; - enableIntelLowPowerH264HwEncoder = true; - enableIntelLowPowerHevcHwEncoder = true; - enableThrottling = false; - enableTonemapping = true; - downMixAudioBoost = 1; - }; - }; }; # 1. enable vaapi on OS-level nixpkgs.config.packageOverrides = pkgs: { diff --git a/flake.nix b/flake.nix index 757f947..ff139f8 100644 --- a/flake.nix +++ b/flake.nix @@ -4,15 +4,9 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/release-24.11"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; - jellyfin-flake = { - inputs.nixpkgs.follows = "nixpkgs"; - owner = "matt1432"; - repo = "nixos-jellyfin"; - type = "github"; - }; }; - outputs = { self, nixpkgs, nixos-hardware, jellyfin-flake, ... }: + outputs = { self, nixpkgs, nixos-hardware, ... }: let system = "x86_64-linux"; lib = nixpkgs.lib; @@ -23,8 +17,7 @@ inherit system; modules = [ # add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix - #nixos-hardware.nixosModules.apple-macmini-4-1 - jellyfin-flake.nixosModules.default + nixos-hardware.nixosModules.apple-macmini-4-1 ./configuration.nix ]; };