Modules: set Jellyfin's group to media
This commit is contained in:
parent
2f89ddd51b
commit
5fe661b025
|
@ -233,11 +233,11 @@
|
||||||
"nix-secrets": {
|
"nix-secrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1720716326,
|
"lastModified": 1720807769,
|
||||||
"narHash": "sha256-wflXa3lhKVZKf1BIZICaAohJEF0qbNgehEVgTLnbmO8=",
|
"narHash": "sha256-bpP9fZ+OkeUI02YPtQG4G9SMG791oXZbKM6xFjHD8MQ=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e63567dbb3da53348fe83993d9f8a48d9dff2629",
|
"rev": "673b60b1a7e8a86114c9550cb38724cc675cf8f2",
|
||||||
"revCount": 52,
|
"revCount": 53,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:./nix-secrets"
|
"url": "file:./nix-secrets"
|
||||||
},
|
},
|
||||||
|
|
|
@ -34,7 +34,6 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
aux.system.users.media.enable = true;
|
aux.system.users.media.enable = true;
|
||||||
users.users.jellyfin.extraGroups = [ "media" ];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nginx.virtualHosts."${cfg.url}" = {
|
nginx.virtualHosts."${cfg.url}" = {
|
||||||
|
@ -83,6 +82,7 @@ in
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = lib.mkIf (cfg.home != "") cfg.home;
|
dataDir = lib.mkIf (cfg.home != "") cfg.home;
|
||||||
|
group = "media";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue