Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-10-06 Thread Ludovic Courtès
Hi, Maxime Devos skribis: > It might be possible to modify 'make-forkexec-constructor/container' to call > (exec-command (cons* newuidmap ARGUMENTS-TO-NEWUIDMAP command) ...), > where newuidmap is (search-input-file "newuidmap" '("/run/setuid-programs" > "/usr/sbin" "/sbin")). > That path shoul

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-10-04 Thread Maxime Devos
Ludovic Courtès schreef op ma 04-10-2021 om 16:32 [+0200]: > Maxime Devos skribis: > > > Ludovic Courtès schreef op za 02-10-2021 om 16:27 [+0200]: > > > Maxime Devos skribis: > > > > > > > Ludovic Courtès schreef op di 28-09-2021 om 14:21 [+0200]: > > > > > Hi, > > > > > > > > > > Joshua Bran

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-10-04 Thread Ludovic Courtès
Maxime Devos skribis: > Ludovic Courtès schreef op za 02-10-2021 om 16:27 [+0200]: >> Maxime Devos skribis: >> >> > Ludovic Courtès schreef op di 28-09-2021 om 14:21 [+0200]: >> > > Hi, >> > > >> > > Joshua Branson skribis: >> > > >> > > > Apologies if I'm speaking for something I know very

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-10-03 Thread Maxime Devos
Ludovic Courtès schreef op za 02-10-2021 om 16:27 [+0200]: > Maxime Devos skribis: > > > Ludovic Courtès schreef op di 28-09-2021 om 14:21 [+0200]: > > > Hi, > > > > > > Joshua Branson skribis: > > > > > > > Apologies if I'm speaking for something I know very little > > > > about...Wouldn't it

Re: On the naming of System and Home services modules.

2021-10-02 Thread Oleg Pykhalov
Ludovic Courtès writes: […] > I’m in favor of (gnu home services) rather than (gnu services), in part > because we have yet to figure out how much can be shared between System > and Home services, and in part because the Home bits are likely useless > for System. Moved to (gnu home services) in

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-10-02 Thread Ludovic Courtès
Maxime Devos skribis: > Ludovic Courtès schreef op di 28-09-2021 om 14:21 [+0200]: >> Hi, >> >> Joshua Branson skribis: >> >> > Apologies if I'm speaking for something I know very little >> > about...Wouldn't it be nice if guix home services would accept a user >> > and a group field? For the

Re: On the naming of System and Home services modules.

2021-10-02 Thread Ludovic Courtès
Hi, Xinglu Chen skribis: > I think it would be better to put home services in the same modules as > system services, i.e., (gnu services mcron) would contain the Mcron > service for Guix System and the Mcron service for Guix Home. That would > also mean that we wouldn’t have to export ‘job-file

Re: On the naming of System and Home services modules.

2021-10-02 Thread Ludovic Courtès
Hi! Oleg Pykhalov skribis: > Andrew Tropin writes: > > […] > >>> I would very much like to have these modules renamed to (gnu home >>> services …) quickly. WDYT? Could the two of you take a look? >> >> Doable. >> >> What about moving home services to (gnu services ...)? >> >> It's a little ha

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-29 Thread Maxime Devos
Ludovic Courtès schreef op di 28-09-2021 om 14:21 [+0200]: > Hi, > > Joshua Branson skribis: > > > Apologies if I'm speaking for something I know very little > > about...Wouldn't it be nice if guix home services would accept a user > > and a group field? For the syncthing service, perhaps the u

Re: On the naming of System and Home services modules.

2021-09-28 Thread Oleg Pykhalov
Andrew Tropin writes: […] >> I would very much like to have these modules renamed to (gnu home >> services …) quickly. WDYT? Could the two of you take a look? > > Doable. > > What about moving home services to (gnu services ...)? > > It's a little harder, because we probably will need to adjus

Re: On the naming of System and Home services modules.

2021-09-28 Thread Xinglu Chen
On Tue, Sep 28 2021, Ludovic Courtès wrote: > Hi, > > (+ Cc: Oleg.) > > Andrew Tropin skribis: > >> For now my personal ranking of the ideas is following: >> >> 1. Move to (gnu services ...) :: can(?) provide some additional reusability. >> 2. Keep as it is right now (gnu home-services ...) :: al

Re: On the naming of System and Home services modules.

2021-09-28 Thread Andrew Tropin
On 2021-09-28 14:26, Ludovic Courtès wrote: > Hi, > > (+ Cc: Oleg.) > > Andrew Tropin skribis: > >> For now my personal ranking of the ideas is following: >> >> 1. Move to (gnu services ...) :: can(?) provide some additional reusability. >> 2. Keep as it is right now (gnu home-services ...) :: al

Re: On the naming of System and Home services modules.

2021-09-28 Thread Ludovic Courtès
Hi, (+ Cc: Oleg.) Andrew Tropin skribis: > For now my personal ranking of the ideas is following: > > 1. Move to (gnu services ...) :: can(?) provide some additional reusability. > 2. Keep as it is right now (gnu home-services ...) :: already works. > 3. Move to (gnu home services ...) :: good

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-28 Thread Ludovic Courtès
Hi, Joshua Branson skribis: > Apologies if I'm speaking for something I know very little > about...Wouldn't it be nice if guix home services would accept a user > and a group field? For the syncthing service, perhaps the user wants to > limit Syncthing's runtime permissions. So instead of runn

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-28 Thread Ludovic Courtès
Hi, Xinglu Chen skribis: > I didn’t know about the parent mechanism; that could be an approach to > take. But since ‘define-configuration’ is based on (guix records), > would it make sense to adapt (guix records) to (rnrs records syntactic) > instead of SRFI-9 records? Yes, it would make sense

Re: On the naming of System and Home services modules.

2021-09-28 Thread Ludovic Courtès
Hi Andrew, Andrew Tropin skribis: > On 2021-09-23 22:08, Ludovic Courtès wrote: [...] >> Silly question, but why do we need to have two different configuration >> record types in the first place? To be clear: you’ll have to be very convincing as I know all too well the cost of maintaining suc

Re: On the naming of System and Home services modules.

2021-09-27 Thread Andrew Tropin
On 2021-09-23 22:10, Ludovic Courtès wrote: > Hi, > > Andrew Tropin skribis: > >> However, ~(gnu home services ...)~ also looks cool, but it would be a >> little inconsistent with system services, which will have one level of >> nestiness less: ~(gnu services)~. >> >> IMO, ~(gnu home services ...

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-27 Thread Andrew Tropin
On 2021-09-24 16:03, Maxime Devos wrote: > Xinglu Chen schreef op vr 24-09-2021 om 15:35 [+0200]: >> On Thu, Sep 23 2021, Ludovic Courtès wrote: >> >> > Hi, >> > >> > Xinglu Chen skribis: >> > >> > > Some services might be useful to have in both Guix System and Guix Home; >> > > for instance,

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-27 Thread Maxim Cournoyer
Hi, Xinglu Chen writes: > On Thu, Sep 23 2021, Ludovic Courtès wrote: > >> Hi, >> >> Xinglu Chen skribis: >> >>> Some services might be useful to have in both Guix System and Guix Home; >>> for instance, Guix System currently has a service for configuring >>> Syncthing, and I think it makes sen

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-24 Thread Maxime Devos
Xinglu Chen schreef op vr 24-09-2021 om 17:39 [+0200]: > [...] > I didn’t know about the parent mechanism; that could be an approach to > take. But since ‘define-configuration’ is based on (guix records), > would it make sense to adapt (guix records) to (rnrs records syntactic) > instead of SRFI-

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-24 Thread Xinglu Chen
On Fri, Sep 24 2021, Maxime Devos wrote: > Xinglu Chen schreef op vr 24-09-2021 om 15:35 [+0200]: >> On Thu, Sep 23 2021, Ludovic Courtès wrote: >> >> > Hi, >> > >> > Xinglu Chen skribis: >> > >> > > Some services might be useful to have in both Guix System and Guix Home; >> > > for instance,

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-24 Thread Joshua Branson
Xinglu Chen writes: > On Thu, Sep 23 2021, Ludovic Courtès wrote: > >> Hi, >> >> Xinglu Chen skribis: >> >>> Some services might be useful to have in both Guix System and Guix Home; >>> for instance, Guix System currently has a service for configuring >>> Syncthing, and I think it makes sense to

Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-24 Thread Maxime Devos
Xinglu Chen schreef op vr 24-09-2021 om 15:35 [+0200]: > On Thu, Sep 23 2021, Ludovic Courtès wrote: > > > Hi, > > > > Xinglu Chen skribis: > > > > > Some services might be useful to have in both Guix System and Guix Home; > > > for instance, Guix System currently has a service for configuring

Code sharing between system and home services (was Re: On the naming of System and Home services modules.)

2021-09-24 Thread Xinglu Chen
On Thu, Sep 23 2021, Ludovic Courtès wrote: > Hi, > > Xinglu Chen skribis: > >> Some services might be useful to have in both Guix System and Guix Home; >> for instance, Guix System currently has a service for configuring >> Syncthing, and I think it makes sense to also have one for Guix Home, >>

Re: On the naming of System and Home services modules.

2021-09-24 Thread Andrew Tropin
On 2021-09-23 22:08, Ludovic Courtès wrote: > Hi, > > Xinglu Chen skribis: > >> Some services might be useful to have in both Guix System and Guix Home; >> for instance, Guix System currently has a service for configuring >> Syncthing, and I think it makes sense to also have one for Guix Home, >>

Re: On the naming of System and Home services modules.

2021-09-23 Thread Ludovic Courtès
Hi, Andrew Tropin skribis: > However, ~(gnu home services ...)~ also looks cool, but it would be a > little inconsistent with system services, which will have one level of > nestiness less: ~(gnu services)~. > > IMO, ~(gnu home services ...)~ would be a good choice if we use ~(gnu > system servi

Re: On the naming of System and Home services modules.

2021-09-23 Thread Ludovic Courtès
Hi, Xinglu Chen skribis: > Some services might be useful to have in both Guix System and Guix Home; > for instance, Guix System currently has a service for configuring > Syncthing, and I think it makes sense to also have one for Guix Home, > this would mean that people not using Guix System (me

Re: On the naming of System and Home services modules.

2021-09-19 Thread Xinglu Chen
On Fri, Sep 17 2021, Andrew Tropin wrote: > On 2021-09-17 11:28, Xinglu Chen wrote: > >> On Thu, Sep 16 2021, Andrew Tropin wrote: >> > * Putting Home Services to ~(gnu services ...)~ > In the thread https://issues.guix.gnu.org/49419#18 Ludovic suggested: > >> Regarding module name

Re: On the naming of System and Home services modules.

2021-09-17 Thread Andrew Tropin
On 2021-09-17 11:28, Xinglu Chen wrote: > On Thu, Sep 16 2021, Andrew Tropin wrote: > * Putting Home Services to ~(gnu services ...)~ In the thread https://issues.guix.gnu.org/49419#18 Ludovic suggested: > Regarding module names: what about putting everything in the (gnu > h

Re: On the naming of System and Home services modules.

2021-09-17 Thread Xinglu Chen
On Thu, Sep 16 2021, Andrew Tropin wrote: >>> * Putting Home Services to ~(gnu services ...)~ >>> In the thread https://issues.guix.gnu.org/49419#18 Ludovic suggested: >>> Regarding module names: what about putting everything in the (gnu home …) name space. For services, I wonder if we

Re: On the naming of System and Home services modules.

2021-09-16 Thread Andrew Tropin
On 2021-09-15 09:50, Katherine Cox-Buday wrote: > Xinglu Chen writes: > >> On Wed, Sep 15 2021, Andrew Tropin wrote: > >>> Records even for the same services have slightly different fields and >>> because of macro nature can't be reused between Home and System >>> services. In more details I ment

Re: On the naming of System and Home services modules.

2021-09-16 Thread Andrew Tropin
On 2021-09-15 15:06, Xinglu Chen wrote: > On Wed, Sep 15 2021, Andrew Tropin wrote: > >> This topic was raised a few times during development of Guix Home >> project and also during the review of wip-guix-home branch. I made a >> separate thread to do an exhaustive discussion of it. >> >> * Servi

Re: On the naming of System and Home services modules.

2021-09-16 Thread Andrew Tropin
On 2021-09-16 03:05, Ryan Prior wrote: > On Wednesday, September 15th, 2021 at 8:47 AM, Andrew Tropin >> People will be trying to use home services inside operating systems, and >> configuration record for system services inside home services. > > I think it will be a dismal design failure if we

Re: On the naming of System and Home services modules.

2021-09-15 Thread Ryan Prior
On Wednesday, September 15th, 2021 at 8:47 AM, Andrew Tropin > People will be trying to use home services inside operating systems, and > configuration record for system services inside home services. I think it will be a dismal design failure if we cannot make this just work the way people woul

Re: On the naming of System and Home services modules.

2021-09-15 Thread Katherine Cox-Buday
Xinglu Chen writes: > On Wed, Sep 15 2021, Andrew Tropin wrote: >> Records even for the same services have slightly different fields and >> because of macro nature can't be reused between Home and System >> services. In more details I mentioned this problem here: >> https://lists.sr.ht/~abcdw/rd

Re: On the naming of System and Home services modules.

2021-09-15 Thread Andrew Tropin
On 2021-09-15 12:09, Maxime Devos wrote: > Andrew Tropin schreef op wo 15-09-2021 om 11:47 [+0300]: >> *** Confusion >> I already mentioned that I see a lot of confusion between System and >> Shepherd services and I expect some confusion between home and system >> services, it will be especially t

Re: On the naming of System and Home services modules.

2021-09-15 Thread Xinglu Chen
On Wed, Sep 15 2021, Andrew Tropin wrote: > This topic was raised a few times during development of Guix Home > project and also during the review of wip-guix-home branch. I made a > separate thread to do an exhaustive discussion of it. > > * Services and Confusion > It's an optional section, you

Re: On the naming of System and Home services modules.

2021-09-15 Thread Maxime Devos
Andrew Tropin schreef op wo 15-09-2021 om 11:47 [+0300]: > *** Confusion > I already mentioned that I see a lot of confusion between System and > Shepherd services and I expect some confusion between home and system > services, it will be especially true if we place them in the same > namespace. >

On the naming of System and Home services modules.

2021-09-15 Thread Andrew Tropin
This topic was raised a few times during development of Guix Home project and also during the review of wip-guix-home branch. I made a separate thread to do an exhaustive discussion of it. * Services and Confusion It's an optional section, you can skip it, but I still find it somehow related to t