nixos/mediatomb: make service use group

The systemd service for mediatomb did not use the group configuration setting in the service configuration, I added in the group specification.
This commit is contained in:
Jan Seeger 2022-02-18 13:13:05 +01:00
parent 5cc66fd553
commit f1fe11906d

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") {