Media services
This commit is contained in:
parent
6c32589d07
commit
08e278f818
3 changed files with 28 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,6 @@
|
||||||
wget
|
wget
|
||||||
nixfmt-classic
|
nixfmt-classic
|
||||||
btop
|
btop
|
||||||
|
lazygit
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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