Merge pull request #160611 from jeeger/mediatomb-group-fix

nixos/mediatomb: make service use group
This commit is contained in:
Aaron Andersen 2022-02-18 19:49:13 -05:00 committed by GitHub
commit 85f873466e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,6 +366,7 @@ in {
wantedBy = [ "multi-user.target" ];
serviceConfig.ExecStart = "${binaryCommand} --port ${toString cfg.port} ${interfaceFlag} ${configFlag} --home ${cfg.dataDir}";
serviceConfig.User = cfg.user;
serviceConfig.Group = cfg.group;
};
users.groups = optionalAttrs (cfg.group == "mediatomb") {