feat(servers): add my module for declaring jellyfin config
All checks were successful
Discord / discord commits (push) Successful in 36s
All checks were successful
Discord / discord commits (push) Successful in 36s
This commit is contained in:
parent
88d5d1bdd8
commit
29c32c8e49
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
jellyfin-flake,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
@ -14,6 +15,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
./jfa-go.nix
|
./jfa-go.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
jellyfin-flake.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users."jellyfin".extraGroups =
|
users.users."jellyfin".extraGroups =
|
||||||
|
@ -23,7 +25,36 @@ in {
|
||||||
++ optionalGroup "render";
|
++ optionalGroup "render";
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
jellyfin.enable = true;
|
jellyfin = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
serverName = "Jelly";
|
||||||
|
|
||||||
|
quickConnectAvailable = false;
|
||||||
|
isStartupWizardCompleted = true;
|
||||||
|
|
||||||
|
branding.customCss = ''
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
libraries.display = {
|
||||||
|
enableGroupingIntoCollections = true;
|
||||||
|
enableExternalContentInSuggestions = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
playback.transcoding = {
|
||||||
|
hardwareAccelerationType = "nvenc";
|
||||||
|
hardwareDecodingCodecs = ["h264" "hevc" "mpeg2video" "mpeg4" "vc1" "vp8" "vp9" "av1"];
|
||||||
|
enableThrottling = true;
|
||||||
|
enableTonemapping = true;
|
||||||
|
downMixAudioBoost = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
advanced.logs.enableSlowResponseWarning = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{...}: {
|
{config, ...}: let
|
||||||
|
jellyService = config.systemd.services.jellyfin.serviceConfig;
|
||||||
|
in {
|
||||||
systemd.services."arion-jfa-go" = {
|
systemd.services."arion-jfa-go" = {
|
||||||
after = ["jellyfin.service"];
|
after = ["jellyfin.service"];
|
||||||
partOf = ["jellyfin.service"];
|
partOf = ["jellyfin.service"];
|
||||||
|
@ -11,7 +13,7 @@
|
||||||
ports = ["8056:8056"];
|
ports = ["8056:8056"];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/jellyfin/jfa-go:/data"
|
"${jellyService.WorkingDirectory}/jfa-go:/data"
|
||||||
"/etc/localtime:/etc/localtime:ro"
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
21
flake.lock
21
flake.lock
|
@ -630,6 +630,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"jellyfin-flake": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709648545,
|
||||||
|
"narHash": "sha256-TyhCoG1py0dRMFvjHo9DxExj5GERwXSdCI8hri5NI0M=",
|
||||||
|
"owner": "matt1432",
|
||||||
|
"repo": "nixos-jellyfin",
|
||||||
|
"rev": "5b423ad2e5566b404c58b790a46b7cee7592101a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "matt1432",
|
||||||
|
"repo": "nixos-jellyfin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"lib-aggregate": {
|
"lib-aggregate": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_3",
|
||||||
|
@ -1339,6 +1359,7 @@
|
||||||
"hypridle": "hypridle",
|
"hypridle": "hypridle",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprlock": "hyprlock",
|
"hyprlock": "hyprlock",
|
||||||
|
"jellyfin-flake": "jellyfin-flake",
|
||||||
"modernx-src": "modernx-src",
|
"modernx-src": "modernx-src",
|
||||||
"nh": "nh",
|
"nh": "nh",
|
||||||
"nix-gaming": "nix-gaming",
|
"nix-gaming": "nix-gaming",
|
||||||
|
|
|
@ -157,7 +157,6 @@
|
||||||
repo = "nixos-pcsd";
|
repo = "nixos-pcsd";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Oksys inputs
|
|
||||||
headscale = {
|
headscale = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "juanfont";
|
owner = "juanfont";
|
||||||
|
@ -186,6 +185,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Nos inputs
|
||||||
arion = {
|
arion = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "hercules-ci";
|
owner = "hercules-ci";
|
||||||
|
@ -193,6 +193,13 @@
|
||||||
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
jellyfin-flake = {
|
||||||
|
type = "github";
|
||||||
|
owner = "matt1432";
|
||||||
|
repo = "nixos-jellyfin";
|
||||||
|
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
# Desktop inputs
|
# Desktop inputs
|
||||||
hyprland = {
|
hyprland = {
|
||||||
|
|
Loading…
Reference in a new issue