mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 16:36:24 +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
|
|
];
|
|
}
|