X-Loop: help-debbugs@HIDDEN Subject: bug#41121: (Keyboard-layout) form does not work "across the board" Resent-From: o.rojon@HIDDEN Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Thu, 07 May 2020 07:02:01 +0000 Resent-Message-ID: <handler.41121.B.158883492021105 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 41121 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41121 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.158883492021105 (code B ref -1); Thu, 07 May 2020 07:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 May 2020 07:02:00 +0000 Received: from localhost ([127.0.0.1]:41904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1jWaXf-0005UL-PJ for submit <at> debbugs.gnu.org; Thu, 07 May 2020 03:02:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:43208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <o.rojon@HIDDEN>) id 1jWaXe-0005UD-I6 for submit <at> debbugs.gnu.org; Thu, 07 May 2020 03:01:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <o.rojon@HIDDEN>) id 1jWaXe-0007uG-9t for bug-guix@HIDDEN; Thu, 07 May 2020 03:01:58 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39205) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <o.rojon@HIDDEN>) id 1jWaXb-00089f-MP for bug-guix@HIDDEN; Thu, 07 May 2020 03:01:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4825016005F for <bug-guix@HIDDEN>; Thu, 7 May 2020 09:01:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1588834911; bh=D4Aeo8XUbEPcdu7CLu0l1B2rpgBe5VInv3m9guOmIME=; h=Date:From:To:Subject:From; b=Cr+oB2BQBGYlOGvQkHr7wBzey/h97WaKT09b73wI3QNHk+GJexlpPOmgt0VAFLcGr vrVmBB/K4ct+Umru17Fo/HTeu/JPRDBQvHWd73JET99WquIBZqVNGHypZK6iAYjp2Q FyiMXzlfDv3po1O4kDfRPY5lBa1Zbj9FmtrSZoJ2keYF5fxupCm2WPX8+cMkzxPznL bw3wb7mLYVucRUOXhNToJI3Aovdsjl9EOrJp0UH0+VQVcC+yM115tZP7YRjjlbyh/N 7AbEejzeRLXXk0Coji8mN67Ctc5YiWjm/fArzt3iLiWE/hXKDHem6wt1KAKqcOKp/q gJaJTsXRy59EQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49HksV6XtZz9ry2 for <bug-guix@HIDDEN>; Thu, 7 May 2020 09:01:50 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Thu, 07 May 2020 09:01:50 +0200 From: o.rojon@HIDDEN Message-ID: <7d29a1f07e7656f042551876ec6f2b44@HIDDEN> X-Sender: o.rojon@HIDDEN User-Agent: Posteo Webmail Received-SPF: pass client-ip=185.67.36.65; envelope-from=o.rojon@HIDDEN; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/07 03:01:51 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hej guys, so I hope this actually is a bug and not something not yet implemented=20 or a misunderstanding on my part. In the process of changing my login manager to slim (over gdm), I=20 noticed that the (keyboard-layout ...) form does not work the same way=20 in the (bootloader)/(set-xorg-configuration) and the=20 (slim-configuration) form. While in the former cases, (keyboard-layout=20 keyboard-layout) uses the string I inputted in the beginning of the=20 config file, an error is thrown when I try to do the same in the=20 (slim-configuration) form (error 1). When I simply use (service=20 slim-service-type) and try to supplement via (set-xorg-configuration),=20 an error is thrown as well (error 2). Have a good day folks, guix rules :) ### The errors (with my shabby translations) 1) user@computer ~$ sudo guix system reconfigure=20 src/guix-config/os-desktop.scm Passwort: guix system: error: =E2=80=9Esrc/guix-config/os-desktop.scm=E2=80=9C could = not be=20 loaded: /home/user/src/guix-config/os-desktop.scm:68:30: Wrong type to=20 apply: #<<keyboard-layout> name: "de" variant: #f model: #f options: ()> 2) user@computer ~$ sudo guix system reconfigure=20 src/guix-config/os-desktop.scm guix system: error: Der Dienst =E2=80=9Exorg-server=E2=80=9C kommt mehr als= einmal vor ### The config file (note that some parens might be unbalanced because I=20 tried to remove the "unnecessary" stuff) (use-modules (gnu) (srfi srfi-1)) (use-service-modules desktop networking ssh xorg) (use-package-modules disk llvm linux ncdu xorg less gnome fonts=20 display-managers lxqt syncthing version-control emacs emacs-xyz tex cups video gstreamer gnuzilla=20 web-browsers messaging mail rsync suckless pdf curl databases hardware wm) (operating-system (locale "de_DE.utf8") (timezone "Europe/Berlin") (keyboard-layout (keyboard-layout "de")) (host-name "computer") (users (cons* (user-account (name "user") (comment "") (group "users") (home-directory "/home/hapster") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) (packages (append (map specification->package '( ;;;; PACKAGES )) %base-packages)) ;;;; "alternative" Konfiguration (services (cons* (service slim-service-type) ;; (slim-configuration ;; (xorg-configuration ;; (keyboard-layout keyboard-layout)))) ;; (set-xorg-configuration ;; (xorg-configuration ;; (keyboard-layout keyboard-layout))) (remove (lambda (service) (eq? (service-kind service) gdm-service-type)) %desktop-services))) (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sdX") (keyboard-layout keyboard-layout))) (file-systems (cons* ;;;; FILESYSTEMS %base-file-systems)))
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: o.rojon@HIDDEN Subject: bug#41121: Acknowledgement ((Keyboard-layout) form does not work "across the board") Message-ID: <handler.41121.B.158883492021105.ack <at> debbugs.gnu.org> References: <7d29a1f07e7656f042551876ec6f2b44@HIDDEN> X-Gnu-PR-Message: ack 41121 X-Gnu-PR-Package: guix Reply-To: 41121 <at> debbugs.gnu.org Date: Thu, 07 May 2020 07:02:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 41121 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 41121: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41121 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#41121: (Keyboard-layout) form does not work "across the board" In-Reply-To: <7d29a1f07e7656f042551876ec6f2b44@HIDDEN> Resent-From: Stefan Huchler <stefan.huchler@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sun, 24 May 2020 17:38:02 +0000 Resent-Message-ID: <handler.41121.B.159034188215024 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 41121 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41121 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.159034188215024 (code B ref -1); Sun, 24 May 2020 17:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2020 17:38:02 +0000 Received: from localhost ([127.0.0.1]:38606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1jcuZV-0003uB-Ri for submit <at> debbugs.gnu.org; Sun, 24 May 2020 13:38:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:34916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gcggb-bug-guix@HIDDEN>) id 1jcuZU-0003u4-3Q for submit <at> debbugs.gnu.org; Sun, 24 May 2020 13:38:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <gcggb-bug-guix@HIDDEN>) id 1jcuZT-00053L-TZ for bug-guix@HIDDEN; Sun, 24 May 2020 13:37:59 -0400 Received: from ciao.gmane.io ([159.69.161.202]:45426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <gcggb-bug-guix@HIDDEN>) id 1jcuZS-0006QJ-Rp for bug-guix@HIDDEN; Sun, 24 May 2020 13:37:59 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from <gcggb-bug-guix@HIDDEN>) id 1jcuZP-000XgY-4a for bug-guix@HIDDEN; Sun, 24 May 2020 19:37:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Stefan Huchler <stefan.huchler@HIDDEN> Date: Sun, 24 May 2020 19:37:50 +0200 Message-ID: <871rn9utch.fsf@HIDDEN> References: <7d29a1f07e7656f042551876ec6f2b44@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:IB0T1yv8WNy5mEGF4VzdVkIsMmw= Received-SPF: pass client-ip=159.69.161.202; envelope-from=gcggb-bug-guix@HIDDEN; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/24 13:37:56 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HK_RANDOM_ENVFROM=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -0.9 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.9 (-) o.rojon@HIDDEN writes: > In the process of changing my login manager to slim (over gdm), I > noticed that the (keyboard-layout ...) form does not work the same way > in the (bootloader)/(set-xorg-configuration) and the > (slim-configuration) form. While in the former cases, (keyboard-layout > keyboard-layout) uses the string I inputted in the beginning of the > config file, an error is thrown when I try to do the same in the > (slim-configuration) form (error 1). When I simply use (service > slim-service-type) and try to supplement via (set-xorg-configuration), > an error is thrown as well (error 2). Hello "o", sadly can't see your name, I run into the same Problem and first found only your bug report so did not care to look for other bug reports further back in the past, but this "bug" missunderstanding seems to be related to bug#37422. I found the solution by carefully reading the docu und try/error a few iterations first with simpler level of config till I got the solution ( would be easier if I found the bug mentioned earlier but I learned more this way so it's good :D ) This is the solution to get it working: (service slim-service-type (slim-configuration (xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))))) The tricky part is that you have to use 2 times xorg-configuration one time for the variable name and one time you have some sort of generator function for xorg-configuration, that didn't clip for me as newcomer to guix instantly. If we consider that a bug it would be a documentian bug, and maybe that the set-xorg-configuration method does not work (at least it seems that way) that is not what the documentation implies. This function looks like a general function where it says "e.g. gdm" that implies that it should work for both gdm and all other login-managers the same way. Ok just testet it that works to: (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)) slim-service-type) Where the documentition there is missleading is that you see the: Scheme Procedure: set-xorg-configuration config [login-manager-service-type] optional login-manager-service-type parameter but it's not described that it defaults to gdm-service-type and can be therefor ommited in the case of gdm. So I would A maybe add more sample code and B adding (default: gdm-service-type) behind the "set-xorg-configuration" description.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.