Media services
This commit is contained in:
parent
6c32589d07
commit
08e278f818
3 changed files with 28 additions and 0 deletions
26
services/jellyfin.nix
Normal file
26
services/jellyfin.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }: {
|
||||
users.groups.multimedia = { };
|
||||
users.users.lucas.extraGroups = [ "multimedia" ];
|
||||
|
||||
systemd.tmpfiles.rules =
|
||||
[ "d /data - - - - -" "d /data/media 0770 - multimedia - -" ];
|
||||
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
group = "multimedia";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
jellyfin
|
||||
jellyfin-web
|
||||
jellyfin-ffmpeg
|
||||
];
|
||||
|
||||
services.deluge = {
|
||||
enable = true;
|
||||
web.enable = true;
|
||||
web.openFirewall = true;
|
||||
group = "multimedia";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue