hosts/library: extract jellyfin config
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m15s

This commit is contained in:
2025-06-02 22:54:54 +01:00
parent 2a395d5efb
commit 471c46d4cb
2 changed files with 34 additions and 19 deletions

View File

@ -1,9 +1,12 @@
{ config, pkgs, ... }:
{
...
}:
{
imports = [
./hardware-configuration.nix
./grafana.nix
./jellyfin.nix
./nginx.nix
./prometheus.nix
./tunnel.nix
@ -50,30 +53,12 @@
enable = true;
};
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vaapiVdpau
];
};
users.users.jellyfin.extraGroups = [
"video"
"render"
];
services.jellyfin = {
enable = true;
package = pkgs.unstable.jellyfin;
cacheDir = "/var/cache/jellyfin";
dataDir = "/var/lib/jellyfin";
};
modules = {
podman.enable = true;
services = {
borgmatic = {
enable = true;
directories = [
config.services.jellyfin.dataDir
"/home/jordan"
];
repoPath = "ssh://b61758r4@b61758r4.repo.borgbase.com/./repo";