Ludovic Courtès writes: > What would be nice is to provide in (shepherd support) or similar a > ‘home-environment-variables’ procedure (or similar) that would add HOME= > and USER= to the given list of environment variables. > > That would avoid duplication of the boilerplate above. > > If you’d like to submit such a patch, it’d be welcome! Would something like the attached work? I placed the procedure directly into the (shepherd service) module, since the point is to reduce boilerplate, I thought it better to not having to specify (modules '((shepherd support))) every time someone wants to use it, but I can move it if you prefer.