mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
27 lines
487 B
Nix
27 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
|
||
|
];
|
||
|
}
|