Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-15 Thread Chris Marusich
 writes:

> [...]  And may be I will need
> any other configurations in other services that were not mentioned in
> Guix cgit.
> So how to get their exact names?

Some (perhaps most) services assume that you are somewhat familiar with
the software in question.  For example, the explanation of the
openssh-configuration in the Guix manual explains what the configuration
items do, but if you don't know what OpenSSH is, then it probably
doesn't help you very much.  When you encounter situations like this,
you might sometimes need to read more about the software in question
before you will understand how to use it in GuixSD.  This is generally
true for any GNU/Linux distribution.

> I started to learn guile at free time. But other Linux distributions
> had answers in the web how to configure.
> Using GuixSD I need to know exactly every package configurations and
> to now exactly how to translate it into Scheme.
> I there any specific manual how to do that?

In cases like this, your best bet is to do the following:

1) Check the GNU Guix manual.  You can read it online [1] or on your
computer via the command "info guix".

2) Check the GNU Guix source.  It sounds like you already know how to do
that.  Sometimes, the source code contains helpful information that has
not yet been added to the manual.

3) Search the help-guix@gnu.org email archives [2] for information.
Sometimes, the same question has been asked before.  It's also useful to
search the guix-de...@gnu.org email list [3], since a lot of discussion
happens there, also.

4) If you still don't understand something, ask for help at
help-guix@gnu.org.  You can also ask for help in our IRC chat room [4].

Nobody starts out knowing everything.  The Guix community is very
welcoming to newcomers, and I'm sure that if you take the time to ask
questions, you'll receive friendly, useful advice.  Good luck!

Footnotes: 
[1]  https://www.gnu.org/software/guix/manual/en/html_node/GNU-Distribution.html

[2]  https://lists.gnu.org/archive/html/help-guix/

[3]  https://lists.gnu.org/archive/html/guix-devel/

[4]  https://www.gnu.org/software/guix/contact/irc/

-- 
Chris


signature.asc
Description: PGP signature


Re: Guix, Rofi, i3wm and Locales

2018-10-15 Thread Ludovic Courtès
Hello,

"Pierre-Henry F."  skribis:

> I had a problem with an i3wm keybinding which called a bash script which 
> called a command (Rofi) installed with Guix.
> I uninstalled rofi with Guix, installed it again with apt and it worked fine:

[...]

> Apprently, installing with guix (`$ guix package -i rofi`) messes with 
> `export LC_ALL=...` and the likes...

Most likely the problem comes with locale setup for Guix:

  https://www.gnu.org/software/guix/manual/en/html_node/Application-Setup.html

Packages installed with Guix do not use locale data provided by the
underlying distro, which is why you have to follow the steps described
in the page above to make sure that they have access to locale data.

Does installed ‘glibc-utf8-locales’ and setting ‘GUIX_LOCPATH’ help?

Ludo’.



Re: Problem using multiple manifest files

2018-10-15 Thread Ludovic Courtès
Hello,

Mikhail Kryshen  skribis:

> Here is an example of a manifest file that loads multiple manifests and
> composes them into one:
>
> --
> (use-modules (srfi srfi-1)
>  ((guix ui) #:select (make-user-module)))
>
> (define (load-manifest file)
>   ;; Load manifest file in a fresh module with necessary imports.
>   (let ((module (make-user-module '((guix profiles) (gnu)
> (save-module-excursion
>  (lambda _
>(set-current-module module)
>(load (canonicalize-path file))
>
> (define (combined-manifest-from-files . files)
>   (fold (lambda (file combined)
>   (manifest-add combined
> (manifest-entries (load-manifest file
> (manifest '())
> files))
>
> (combined-manifest-from-files
>  "emacs.scm"
>  "xorg.scm"
>  "etc.scm")
> --

Nice example!

Ludo’.



Re: Bluetooth audio device on GuixSD

2018-10-15 Thread Ludovic Courtès
Hello,

Pierre Neidhardt  skribis:

> First, add the bluetooth service to your Guix .config:

This makes me wonder: should we add the bluetooth service to
‘%desktop-services’?

Bluez doesn’t seem to add much to the closure size and many people
probably expect to have it installed in a desktop setting.

Thoughts?

Ludo’.



Re: Bluetooth audio device on GuixSD

2018-10-15 Thread Pierre Neidhardt
I agree!

-- 
Pierre Neidhardt
https://ambrevar.xyz/


signature.asc
Description: PGP signature


Re: Bluetooth audio device on GuixSD

2018-10-15 Thread Ricardo Wurmus


Ludovic Courtès  writes:

> Pierre Neidhardt  skribis:
>
>> First, add the bluetooth service to your Guix .config:
>
> This makes me wonder: should we add the bluetooth service to
> ‘%desktop-services’?
>
> Bluez doesn’t seem to add much to the closure size and many people
> probably expect to have it installed in a desktop setting.

How about only adding it to the GNOME service?  %desktop-services is
also used by people who use simpler window managers and they may prefer
to have fewer software added by default.

It is easy enough for people to remove services, of course, but I
thought I’d mention it as an alternative anyway.  Either way is fine by
me.

--
Ricardo




Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-15 Thread Marius Bakke
Chris Marusich  writes:

>  writes:
>
>> [...]  And may be I will need
>> any other configurations in other services that were not mentioned in
>> Guix cgit.
>> So how to get their exact names?
>
> Some (perhaps most) services assume that you are somewhat familiar with
> the software in question.  For example, the explanation of the
> openssh-configuration in the Guix manual explains what the configuration
> items do, but if you don't know what OpenSSH is, then it probably
> doesn't help you very much.  When you encounter situations like this,
> you might sometimes need to read more about the software in question
> before you will understand how to use it in GuixSD.  This is generally
> true for any GNU/Linux distribution.

Perhaps it would be useful with an appendix to the manual explaining
some of the concepts in play.  Not only Scheme and the configuration
system, but also things like bootloaders, partitioning, LUKS, etc.

I think it could be good resource for many new and intermediate
GNU/Linux users, sort of like the Arch wiki for GuixSD.


signature.asc
Description: PGP signature


Re: Guix, Rofi, i3wm and Locales

2018-10-15 Thread Pierre-Henry F.
Hi Ludo (sorry for this duplicate...),

I checked that I executed the commands:

  $ guix package -i glibc-locales
  $ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale

Then:

  $ sudo apt remove rofi
  $ guix package -i rofi

But no... same result.

Yet:

  $ which rofi /home/phf/.guix-profile/bin/rofi
  $ rofi -combi-modi window,drun,run -theme solarized -font 'hack 10' -show 
combi -modi combi
  # Works as expected

Thanks for looking into this,
Pierre-Henry FRÖHRING
+33 6 34 48 17 57
cont...@phfrohring.com
Skype: pierre.henry.frohring




‐‐‐ Original Message ‐‐‐
On Monday, October 15, 2018 2:13 PM,  wrote:

> Hello,
>
> "Pierre-Henry F." cont...@phfrohring.com skribis:
>
> > I had a problem with an i3wm keybinding which called a bash script which 
> > called a command (Rofi) installed with Guix.
> > I uninstalled rofi with Guix, installed it again with apt and it worked 
> > fine:
>
> [...]
>
> > Apprently, installing with guix (`$ guix package -i rofi`) messes with 
> > `export LC_ALL=...` and the likes...
>
> Most likely the problem comes with locale setup for Guix:
>
> https://www.gnu.org/software/guix/manual/en/html_node/Application-Setup.html
>
> Packages installed with Guix do not use locale data provided by the
> underlying distro, which is why you have to follow the steps described
> in the page above to make sure that they have access to locale data.
>
> Does installed ‘glibc-utf8-locales’ and setting ‘GUIX_LOCPATH’ help?
>
> Ludo’.





Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-15 Thread znavko
This idea is quite interesting! For me very novice, there are too few examples 
of config file in cgit and manual.
As Ludovic Courtes says 'So we have a package abstraction. Just pretty useful' 
https://peertube.social/videos/watch/2d3b999c-0bc8-4375-87ad-91ff86b9521a?start=12m26s
 

When user is not familiar with Scheme need to learn variables described here 
https://www.gnu.org/software/guix/manual/en/html_node/Services.html#Services 
 
before your attempt to add a new service becomes successful.
I cannot understand the chain of those variables and do not know the content of 
variables. So how to display them without starting compilation? 
Is it possible to get something like analysis of my config.scm before running 
`guix system reconfigure /etc/config.scm` ?
And how to know what (use-modules (gnu services networking)) adds or what (gnu 
services audio) adds. F.e. if I do not want pulseaudio, but want only alsa, how 
to type it in my config.scm?
Need to discover a tree of variables for know which modules and may be other 
git parts are necessary for adding new service or package into system.
As I imagine only guix messages while starting compilation can help and cgit is 
the one place where source code may have helpful stuff.
I also cannot understand how function (use-modules) works, and what does it do 
with arguments? Arguments look like childs gnu->services->audio, but why I see 
they are separated by space? All I've got at this moment listening MIT LISP 
lectures that (use-modules) is a function.
May be you'll offer more powerful learning with examples for quick start?


15. Oct 2018 21:35 by mba...@fastmail.com :


> Perhaps it would be useful with an appendix to the manual explaining
> some of the concepts in play.  Not only Scheme and the configuration
> system, but also things like bootloaders, partitioning, LUKS, etc.
>
> I think it could be good resource for many new and intermediate
> GNU/Linux users, sort of like the Arch wiki for GuixSD.