all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Modify Channels for all users
@ 2019-05-22  8:55 Reza Alizadeh Majd
  2019-05-24 20:26 ` Oleg Pykhalov
  2019-05-26 19:36 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Reza Alizadeh Majd @ 2019-05-22  8:55 UTC (permalink / raw)
  To: help-guix

Hi Guix, 

I want to add a custom channel for all users, one way would be using the skeleton files 
to add `channel.scm` to each user's home directory. Just wanted to know if there is 
any other solution to do this or not? 

Thanks
Reza

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Modify Channels for all users
  2019-05-22  8:55 Modify Channels for all users Reza Alizadeh Majd
@ 2019-05-24 20:26 ` Oleg Pykhalov
  2019-05-25 11:02   ` Reza Alizadeh Majd
  2019-05-26 19:36 ` Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: Oleg Pykhalov @ 2019-05-24 20:26 UTC (permalink / raw)
  To: Reza Alizadeh Majd; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

Hi Reza,

"Reza Alizadeh Majd" <r.majd@pantherx.org> writes:

> Hi Guix, 
>
> I want to add a custom channel for all users, one way would be using
> the skeleton files to add `channel.scm` to each user's home
> directory. Just wanted to know if there is any other solution to do
> this or not?

You could try to modify a %default-channels variable in
guix/channels.scm file.  See how to build Guix from Git in
https://www.gnu.org/software/guix/manual/html_node/Building-from-Git.html

Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Modify Channels for all users
  2019-05-24 20:26 ` Oleg Pykhalov
@ 2019-05-25 11:02   ` Reza Alizadeh Majd
  0 siblings, 0 replies; 6+ messages in thread
From: Reza Alizadeh Majd @ 2019-05-25 11:02 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix

modifying %default-channels variable, needs guix image to be rebuilt. 

it might be helpful if we had a reference about channels in system 
configuration file. maybe guix development list would be a better place 
about this matter to discuss. 

Thanks,
Reza


On Sat, May 25, 2019, at 12:56 AM, Oleg Pykhalov wrote:
> Hi Reza,
> 
> "Reza Alizadeh Majd" <r.majd@pantherx.org> writes:
> 
> > Hi Guix, 
> >
> > I want to add a custom channel for all users, one way would be using
> > the skeleton files to add `channel.scm` to each user's home
> > directory. Just wanted to know if there is any other solution to do
> > this or not?
> 
> You could try to modify a %default-channels variable in
> guix/channels.scm file.  See how to build Guix from Git in
> https://www.gnu.org/software/guix/manual/html_node/Building-from-Git.html
> 
> Oleg.
> 
> Attachments:
> * signature.asc

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Modify Channels for all users
  2019-05-22  8:55 Modify Channels for all users Reza Alizadeh Majd
  2019-05-24 20:26 ` Oleg Pykhalov
@ 2019-05-26 19:36 ` Ludovic Courtès
  2019-05-27  5:28   ` Reza Alizadeh Majd
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2019-05-26 19:36 UTC (permalink / raw)
  To: Reza Alizadeh Majd; +Cc: help-guix

Hi,

"Reza Alizadeh Majd" <r.majd@pantherx.org> skribis:

> I want to add a custom channel for all users, one way would be using the skeleton files 
> to add `channel.scm` to each user's home directory. Just wanted to know if there is 
> any other solution to do this or not? 

I think a skeleton for ~/.config/guix/channels.scm is a good way to
achieve this.

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Modify Channels for all users
  2019-05-26 19:36 ` Ludovic Courtès
@ 2019-05-27  5:28   ` Reza Alizadeh Majd
  2019-06-01 14:04     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Reza Alizadeh Majd @ 2019-05-27  5:28 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

I just aware about that copying the skeleton files is a one time operation, we can't modify 
skeleton files later with a new system configuration file for existing users. do we have any 
solution to copy skeleton files to existing users home directories   on each execution of 
guix system reconfigure ?

Thanks ,
Reza


On Mon, May 27, 2019, at 12:06 AM, Ludovic Courtès wrote:
> Hi,
> 
> "Reza Alizadeh Majd" <r.majd@pantherx.org> skribis:
> 
> > I want to add a custom channel for all users, one way would be using the skeleton files 
> > to add `channel.scm` to each user's home directory. Just wanted to know if there is 
> > any other solution to do this or not? 
> 
> I think a skeleton for ~/.config/guix/channels.scm is a good way to
> achieve this.
> 
> Ludo’.
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Modify Channels for all users
  2019-05-27  5:28   ` Reza Alizadeh Majd
@ 2019-06-01 14:04     ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2019-06-01 14:04 UTC (permalink / raw)
  To: Reza Alizadeh Majd; +Cc: help-guix

Hi,

"Reza Alizadeh Majd" <r.majd@pantherx.org> skribis:

> I just aware about that copying the skeleton files is a one time operation, we can't modify 
> skeleton files later with a new system configuration file for existing users. do we have any 
> solution to copy skeleton files to existing users home directories   on each execution of 
> guix system reconfigure ?

If you modify these files at each reconfigure, they’re no longer
skeletons.  :-)  I would advise against it.

Now, you could very much add an “activation snippet” that forcefully
copies files to the user home directories at each boot.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-01 14:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-22  8:55 Modify Channels for all users Reza Alizadeh Majd
2019-05-24 20:26 ` Oleg Pykhalov
2019-05-25 11:02   ` Reza Alizadeh Majd
2019-05-26 19:36 ` Ludovic Courtès
2019-05-27  5:28   ` Reza Alizadeh Majd
2019-06-01 14:04     ` Ludovic Courtès

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.