all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: Abbé <gnu.bonfire@p.atriar.ch>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: Running guix home + shepherd in non-Guix OS
Date: Tue, 06 Feb 2024 23:35:53 +1100	[thread overview]
Message-ID: <878r3xixcm.fsf@zancanaro.id.au> (raw)
In-Reply-To: <170714527294.7.7827551965377370774.261464619@p.atriar.ch> ("Abbé"'s message of "Mon, 05 Feb 2024 15:00:48 +0000")

Hi Abbé,

On Mon, Feb 05 2024, Abbé wrote:
> I'm wondering how would one go about integrating shepherd with 'guix
> home' configuration (i.e. home environment services), akin to what
> Guix does (I believe, without needing to do 'guix home ...').

How are you defining your Guix Home configuration? Have you run "guix
home reconfigure" with your Home config?

If you have done that, you should see ~/.profile contain the lines

  HOME_ENVIRONMENT=$HOME/.guix-home
  . $HOME_ENVIRONMENT/setup-environment
  $HOME_ENVIRONMENT/on-first-login

The on-first-login script is responsible for starting a Shepherd process
which will manage the shepherd services that are defined by your Home
config (if any). These services can then be managed with the "herd"
command, as usual.

When you run "guix home reconfigure" the reconfigure process will also
register/update shepherd services to match your new configuration. Any
running services will need to be restarted with "herd restart" to finish
their upgrade.

This is the same as how Guix Home works on a Guix system.

> Essentially, what should I put in $XDG_CONFIG_HOME/shepherd/init.d/
> for it to execute my "guix home" configuration.

Guix Home does more than just start shepherd services. It is a system
for managing packages, configuration files, etc. If you haven't already,
I would suggest reading "(guix) Home Configuration" in the manual.

There isn't really anything that you can put into your Shepherd config
to execute your Home configuration. It goes the other way: instantiating
your Home config will start a Shepherd process.

I hope that helps,

Carlo


  reply	other threads:[~2024-02-06 12:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-05 15:00 Running guix home + shepherd in non-Guix OS Abbé
2024-02-06 12:35 ` Carlo Zancanaro [this message]
2024-02-12 20:43   ` Abbé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878r3xixcm.fsf@zancanaro.id.au \
    --to=carlo@zancanaro.id.au \
    --cc=gnu.bonfire@p.atriar.ch \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.