Thanks, this is what I needed. Can we get something like this example added to the manual? I now see that the bash example is similar, but this stuff was really not obvious to me. The "type text-config" is also presented, throughout the manual, entirely without explanation, but maybe that would be clear to me if I knew more about scheme/guile?
Thanks again Andrew On Mon, 5 Feb 2024 at 00:38, Carlo Zancanaro <ca...@zancanaro.id.au> wrote: > > HI Andrew, > > On Thu, Feb 01 2024, Andrew Stubbs wrote: > > The manual suggests that "home-shell-profile-configuration" is the way > > to go, but there's no example given. > > The home-shell-profile-service-type is the way to go, but due to the way > the service is included (as an essential service), you need to add items > to the configuration using a service extension. > > > What's the correct way to do this, please? > > The example you provided might look like this instead: > > (simple-service 'sourcing-xprofile home-shell-profile-service-type > (list (plain-file "shell-profile" "echo hi; source > ~/.xprofile"))) > > The items of the list can be any "file-like" gexp (e.g. the results of > local-file, mixed-text-file, file-append). > > I hope that helps, > > Carlo