help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding shell commands the .profile with guix home


From: Carlo Zancanaro
Subject: Re: Adding shell commands the .profile with guix home
Date: Mon, 05 Feb 2024 11:38:32 +1100
User-agent: Gnus/5.13 (Gnus v5.13)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]