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
|
./gitea.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./syncthing.nix
|
|
||||||
./taskserver.nix
|
./taskserver.nix
|
||||||
./tinc.nix
|
./tinc.nix
|
||||||
./transmission.nix
|
|
||||||
./transmission2.nix
|
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./nginx-wkd.nix
|
./nginx-wkd.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./jellyfin.nix
|
|
||||||
|
./media-share.nix
|
||||||
|
./media-jellyfin.nix
|
||||||
|
./media-syncthing.nix
|
||||||
|
./media-transmission.nix
|
||||||
|
./media-transmission2.nix
|
||||||
|
|
||||||
#./social-jitsi.nix
|
#./social-jitsi.nix
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.jellyfin.enable = true;
|
|
||||||
services.jellyfin.openFirewall = false;
|
|
||||||
|
|
||||||
#services.jellyfin.user = toString config.ids.gids.transmission;
|
services.jellyfin = {
|
||||||
#services.jellyfin.group = toString config.ids.gids.transmission;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
users.groups."syncthing".members = [ "jellyfin" ];
|
group = "media";
|
||||||
|
user = "media";
|
||||||
|
};
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx =
|
services.nginx =
|
||||||
let
|
let
|
||||||
flixConfig = {
|
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" = {
|
services.permown."/media/syncthing" = {
|
||||||
|
# not managed by syncthing anymore
|
||||||
owner = "syncthing";
|
owner = "syncthing";
|
||||||
group = "syncthing";
|
group = "syncthing";
|
||||||
umask = "0002";
|
umask = "0002";
|
Loading…
Reference in a new issue