feat(APPA): add media group
This commit is contained in:
parent
aac276e154
commit
0b7160f2a2
3 changed files with 10 additions and 2 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
{ config, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
# HTTP Traffic: 8096
|
# HTTP Traffic: 8096
|
||||||
# HTTPS Traffic: 8920
|
# HTTPS Traffic: 8920
|
||||||
# Service Discovery: 1900
|
# Service Discovery: 1900
|
||||||
# Client Discovery: 7359 UDP
|
# Client Discovery: 7359 UDP
|
||||||
|
|
||||||
users.groups."${config.services.jellyfin.group}".members = [ "nextcloud" ];
|
users.groups.media.members = [ "jellyfin" ];
|
||||||
|
|
||||||
|
systemd.services.jellyfin.serviceConfig.UMask = lib.mkForce "0007";
|
||||||
|
|
||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
group = config.users.groups.nextcloud.name;
|
group = config.users.groups.nextcloud.name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.groups.media.members = [ "nextcloud" ];
|
||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud29;
|
package = pkgs.nextcloud29;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
bchmnn = {
|
bchmnn = {
|
||||||
power = {
|
power = {
|
||||||
|
|
@ -22,4 +23,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logind.lidSwitch = "ignore";
|
services.logind.lidSwitch = "ignore";
|
||||||
|
|
||||||
|
users.groups.media = { };
|
||||||
|
systemd.tmpfiles.rules = [ "d /var/lib/media 2750 root media" ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue