all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Clément Lassieur" <clement@lassieur.org>
To: swedebugia@riseup.net
Cc: 31885-done@debbugs.gnu.org
Subject: bug#31885: Bug when running guix system reconfigure after recent guix pull
Date: Mon, 18 Jun 2018 22:45:42 +0200	[thread overview]
Message-ID: <878t7bvn61.fsf@lassieur.org> (raw)
In-Reply-To: <28fa8f6fd69553b57df3a960e6586e0a@riseup.net>

Hello!

swedebugia@riseup.net writes:

> gnu/services.scm:703:40: In procedure service-kind: Wrong type argument:
> #<<slim-configuration> slim: #<package slim@1.3.6
> gnu/packages/display-managers.scm:312 2963cc0> allow-empty-passwords?:
> #t auto-login?: #t default-user: "annika" theme: #<<file-append> base:
> #<origin #<<git-reference> url:
> "git://git.savannah.gnu.org/guix/guix-artwork.git" commit:
> "6998d30425289b087c64f63e7415df2241e591db" recursive?: #f>

[...]

>   (services (cons* 
> 		(slim-configuration
> 			(auto-login? #t)
> 			(default-user "swedebugia")
> 			(auto-login-session "xfdesktop"))
> 		(guix-configuration
> ;			#:authorize-keys (cons "/home/swedebugia/berlin.guixsd.org.pub"
> ;						%default-authorized-guix-keys)
> 			(substitute-urls (cons	"https://berlin.guixsd.org"
> 						%default-substitute-urls)))
> 		;; Is this correct?
> ;		(tlp-servicy-type
> ;			(tlp-configuration
> ;				;; Should I use parenteses instead of "#:"?
> ;				(cpu-scaling-govenor-on-ac (list "conservative"))
> ;				(cpu-scaling-govenor-on-bat (list "conservative"))))
> 		(xfce-desktop-service)
>                    %desktop-services))

This is because this 'services' field is expecting 'services' and gets
other things like 'configuration records' instead.

You might want something like this (not tested):

--8<---------------cut here---------------start------------->8---
(services (cons*
           (service slim-service-type
                    (slim-configuration
                     (auto-login? #t)
                     (default-user "swedebugia")
                     (auto-login-session "xfdesktop")))

           (service tlp-servicy-type
                    (tlp-configuration
                     (cpu-scaling-governor-on-ac (list "conservative"))
                     (cpu-scaling-governor-on-bat (list "conservative"))))

           (xfce-desktop-service)

           (modify-services %desktop-services
             (guix-service-type
              config =>
              (guix-configuration
               (inherit config)
               (substitute-urls (cons "https://berlin.guixsd.org"
                                      %default-substitute-urls))
               (authorized-keys (cons "/home/swedebugia/berlin.guixsd.org.pub"
                                      %default-authorized-guix-keys)))))))
--8<---------------cut here---------------end--------------->8---

The guix-service-type service needs to be modified because it is already
in %desktop-services, and you can't have it twice.

> ;				;; Should I use parenteses instead of "#:"?

Things ending with '-configuration' are usually macros that can be used
to instantiate the corresponding records.  They take arguments like
'(field value)'.  '#:' is used when passing arguments to normal
functions.

This is complex, but you can usually know what things expect by looking
at the examples in the documentation.

If you have similar issues, please email help-guix@gnu.org instead.

Good luck, and don't hesitate to ask! :-)
Clément

  reply	other threads:[~2018-06-18 20:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-18 19:24 bug#31885: Bug when running guix system reconfigure after recent guix pull swedebugia
2018-06-18 20:45 ` Clément Lassieur [this message]
2018-06-18 22:51   ` swedebugia

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=878t7bvn61.fsf@lassieur.org \
    --to=clement@lassieur.org \
    --cc=31885-done@debbugs.gnu.org \
    --cc=swedebugia@riseup.net \
    /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.