unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: phodina <phodina@protonmail.com>
To: Andrew Tropin <andrew@trop.in>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Guix system with home-environment
Date: Mon, 08 Nov 2021 06:52:32 +0000	[thread overview]
Message-ID: <dNa-d6aFl5yeKtdvNyA_c1RprO3c8wPwZfZ_ygv5-7_GSX49dwZ8OAF1iMzCNYRt_hDILlfqGWRDqTtjr8DJbeV8svQ66xbW-epa1-xo6ks=@protonmail.com> (raw)
In-Reply-To: <871r3x7kun.fsf@trop.in>

Hi Andrew,

On Wednesday, November 3rd, 2021 at 8:35 AM, Andrew Tropin <andrew@trop.in> wrote:

> On 2021-11-02 11:38, phodina wrote:
>
> > Hi,
> >
> > I just want to ask if it's possible to create an image which has both the operating-system and home-environment configuration together.
> >
> > Currently the way to build them is to do:
> >
> > ;; Guix System
> >
> > guix system build os.scm
> >
> > ;; Guix Home
> >
> > guix home build home.scm
> >
> > However, if I want to build and test a VM, I'm missing the home environment.
> >
> > Would it be the correct way to add additional record to user-account definition, which would instantiate the home-environment for the particular user?
> >
> > Or is there another way how to do that?
> >
> > Petr
>
> Hi again!)
>
> I have a plan to have a system service, which accepts list of pairs of
>
> user name and home-environment and instantiates home environments for
>
> these users during `guix system reconfigure`, but the task has a low
>
> priority right now. You can try to implement it yourself and send a
>
> patch for review or can wait until someone will do it.
>
> P.S. It doesn't have to be a separate service, maybe extending some
>
> existing record with additional field will also work.
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Best regards,
>
> Andrew Tropin

I was exactly thinking of a record in the operating system for list of pairs (user and home-environment) as you suggest.

Though then it hit me - it's already there in user accounts.

Therefore why introduce complexity and not just modify them by one record for each user set by default to false.

Sure it's major modification but in order to get the functionality it will have to modify either users or operating-system (or another field within).

I understand it's low priority, I just wanted your opinion on this matter.

I'll look into that and try to come up with some implementation.

Petr


  reply	other threads:[~2021-11-08  6:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 11:38 Guix system with home-environment phodina via
2021-11-03  7:35 ` Andrew Tropin
2021-11-08  6:52   ` phodina [this message]
2021-11-08  8:40     ` Andrew Tropin
2021-12-10  7:48     ` Andrew Tropin
2021-12-13 12:34       ` phodina
2021-12-15  6:27         ` Andrew Tropin

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='dNa-d6aFl5yeKtdvNyA_c1RprO3c8wPwZfZ_ygv5-7_GSX49dwZ8OAF1iMzCNYRt_hDILlfqGWRDqTtjr8DJbeV8svQ66xbW-epa1-xo6ks=@protonmail.com' \
    --to=phodina@protonmail.com \
    --cc=andrew@trop.in \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).