mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 08:46:25 +00:00
26 lines
487 B
Nix
26 lines
487 B
Nix
{ pkgs, ... }:
|
|
let
|
|
jellyUserGroup = "jellyfin";
|
|
in
|
|
{
|
|
users.users."${jellyUserGroup}" = {
|
|
description = "Jellyfin Server";
|
|
group = jellyUserGroup;
|
|
isSystemUser = true;
|
|
isNormalUser = false;
|
|
};
|
|
users.groups."${jellyUserGroup}" = { };
|
|
|
|
services.jellyfin = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
user = jellyUserGroup;
|
|
group = jellyUserGroup;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
jellyfin
|
|
jellyfin-web
|
|
jellyfin-ffmpeg
|
|
];
|
|
}
|