From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#31885: Bug when running guix system reconfigure after recent guix pull Date: Mon, 18 Jun 2018 22:45:42 +0200 Message-ID: <878t7bvn61.fsf@lassieur.org> References: <28fa8f6fd69553b57df3a960e6586e0a@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV12N-0000QS-9g for bug-guix@gnu.org; Mon, 18 Jun 2018 16:46:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV12I-0003pL-CH for bug-guix@gnu.org; Mon, 18 Jun 2018 16:46:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV12I-0003pF-8F for bug-guix@gnu.org; Mon, 18 Jun 2018 16:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fV12I-0000hf-13 for bug-guix@gnu.org; Mon, 18 Jun 2018 16:46:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-reply-to: <28fa8f6fd69553b57df3a960e6586e0a@riseup.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: swedebugia@riseup.net Cc: 31885-done@debbugs.gnu.org Hello! swedebugia@riseup.net writes: > gnu/services.scm:703:40: In procedure service-kind: Wrong type argument: > #< slim: # gnu/packages/display-managers.scm:312 2963cc0> allow-empty-passwords?: > #t auto-login?: #t default-user: "annika" theme: #< base: > # url: > "git://git.savannah.gnu.org/guix/guix-artwork.git" commit: > "6998d30425289b087c64f63e7415df2241e591db" recursive?: #f> [...] > (services (cons*=20 > (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 =3D> (guix-configuration (inherit config) (substitute-urls (cons "https://berlin.guixsd.org" %default-substitute-urls)) (authorized-keys (cons "/home/swedebugia/berlin.guixsd.org.p= ub" %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=C3=A9ment