Media services

This commit is contained in:
Lucas Thelen 2025-09-30 03:49:44 +00:00
parent 6c32589d07
commit 08e278f818
3 changed files with 28 additions and 0 deletions

View file

@ -21,6 +21,7 @@
./networking/ssh.nix ./networking/ssh.nix
./networking/adblock.nix ./networking/adblock.nix
./networking/vpn-host.nix ./networking/vpn-host.nix
./services/jellyfin.nix
{ {
environment.systemPackages = [ agenix.packages.x86_64-linux.default ]; environment.systemPackages = [ agenix.packages.x86_64-linux.default ];
age.secrets.tailscale.file = ./tailscale.age; age.secrets.tailscale.file = ./tailscale.age;

View file

@ -6,5 +6,6 @@
wget wget
nixfmt-classic nixfmt-classic
btop btop
lazygit
]; ];
} }

26
services/jellyfin.nix Normal file
View 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";
};
}