migrated media stuff on robi

This commit is contained in:
Ingolf Wagner 2023-10-05 09:27:38 +02:00
parent dccfe0db58
commit b32deb062b
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
6 changed files with 35 additions and 10 deletions

View file

@ -21,16 +21,18 @@
./gitea.nix
./nextcloud.nix
./packages.nix
./syncthing.nix
./taskserver.nix
./tinc.nix
./transmission.nix
./transmission2.nix
./vaultwarden.nix
./nginx.nix
./nginx-wkd.nix
./wireguard.nix
./jellyfin.nix
./media-share.nix
./media-jellyfin.nix
./media-syncthing.nix
./media-transmission.nix
./media-transmission2.nix
#./social-jitsi.nix

View file

@ -1,18 +1,19 @@
{ config, lib, pkgs, ... }:
{
services.jellyfin.enable = true;
services.jellyfin.openFirewall = false;
#services.jellyfin.user = toString config.ids.gids.transmission;
#services.jellyfin.group = toString config.ids.gids.transmission;
users.groups."syncthing".members = [ "jellyfin" ];
services.jellyfin = {
enable = true;
openFirewall = true;
group = "media";
user = "media";
};
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.nginx =
let
flixConfig = {

View file

@ -0,0 +1,21 @@
{ config, ... }:
{
users.groups."media".gid = config.ids.gids.transmission;
users.users."media" = {
uid = config.ids.uids.transmission;
useDefaultShell = true;
home = "/home/media";
createHome = true;
group = "media";
};
services.permown."/media/media" = {
owner = "media";
group = "media";
directory-mode = "770";
file-mode = "770";
};
}

View file

@ -62,6 +62,7 @@
};
services.permown."/media/syncthing" = {
# not managed by syncthing anymore
owner = "syncthing";
group = "syncthing";
umask = "0002";