migrated media stuff on robi
This commit is contained in:
parent
dccfe0db58
commit
b32deb062b
6 changed files with 35 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 = {
|
21
nixos/machines/robi/media-share.nix
Normal file
21
nixos/machines/robi/media-share.nix
Normal 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";
|
||||
};
|
||||
|
||||
|
||||
}
|
|
@ -62,6 +62,7 @@
|
|||
};
|
||||
|
||||
services.permown."/media/syncthing" = {
|
||||
# not managed by syncthing anymore
|
||||
owner = "syncthing";
|
||||
group = "syncthing";
|
||||
umask = "0002";
|
Loading…
Reference in a new issue