From unknown Sat Aug 09 15:52:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41121 <41121@debbugs.gnu.org> To: bug#41121 <41121@debbugs.gnu.org> Subject: Status: (Keyboard-layout) form does not work "across the board" Reply-To: bug#41121 <41121@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:52:10 +0000 retitle 41121 (Keyboard-layout) form does not work "across the board" reassign 41121 guix submitter 41121 o.rojon@posteo.net severity 41121 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 03:02:00 2020 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 ) id 1jWaXf-0005UL-PJ for submit@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 ) id 1jWaXe-0005UD-I6 for submit@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 ) id 1jWaXe-0007uG-9t for bug-guix@gnu.org; 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 ) id 1jWaXb-00089f-MP for bug-guix@gnu.org; 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 ; 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 ; 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@posteo.net To: bug-guix@gnu.org Subject: (Keyboard-layout) form does not work "across the board" Message-ID: <7d29a1f07e7656f042551876ec6f2b44@posteo.net> X-Sender: o.rojon@posteo.net User-Agent: Posteo Webmail Received-SPF: pass client-ip=185.67.36.65; envelope-from=o.rojon@posteo.net; 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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: #< 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))) From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 13:38:02 2020 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 ) id 1jcuZV-0003uB-Ri for submit@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 ) id 1jcuZU-0003u4-3Q for submit@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 ) id 1jcuZT-00053L-TZ for bug-guix@gnu.org; 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 ) id 1jcuZS-0006QJ-Rp for bug-guix@gnu.org; Sun, 24 May 2020 13:37:59 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jcuZP-000XgY-4a for bug-guix@gnu.org; Sun, 24 May 2020 19:37:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-guix@gnu.org From: Stefan Huchler Subject: Re: bug#41121: (Keyboard-layout) form does not work "across the board" Date: Sun, 24 May 2020 19:37:50 +0200 Message-ID: <871rn9utch.fsf@mail.de> References: <7d29a1f07e7656f042551876ec6f2b44@posteo.net> 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@m.gmane-mx.org; 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) o.rojon@posteo.net 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 01:39:21 2025 Received: (at 41121) by debbugs.gnu.org; 4 Aug 2025 05:39:21 +0000 Received: from localhost ([127.0.0.1]:48302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uinuq-00083a-PO for submit@debbugs.gnu.org; Mon, 04 Aug 2025 01:39:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57923) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uinun-00083H-LU for 41121@debbugs.gnu.org; Mon, 04 Aug 2025 01:39:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 319FC240027 for <41121@debbugs.gnu.org>; Mon, 4 Aug 2025 07:39:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=1984.ea087b; t=1754285951; bh=HGDlRTUB797pgKA2os57Eys+Jp6P0mv01J08kO6+ycE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=fPfo0gkiS63XhEVYl/beWJfGpI3FQM7QOMiRj00GRSaakpvopiOvr3IoT8AL1fnjz cl3aXfIm3pbUSz33u0rkeV/AGfRyepJgKRaGUKcZnv6zk3RslSk9NkMoyAU8cQz/wl j3Bo7ZQVwQRh4iN0W+gyKEFGMPp0efGT3pKCXGzNFNsTVLLMTJBqbAxMMtaGh+QKwZ O82I8CvClHYxiLDAD7FHa3yajAp7y3mknqzs6D9bXdLoCnkuE/E5Evz1V1/vI66UDJ fgUPyzaGTEAomQflbOkNKdvywME/FtQDIuGPl9Ju6tws3swYJZDcYWvKlJlVa+IkUq bgE4ykv9me9U8ghXYZ3+C+WXijCHfZKWeq8VdFaiJgxNj7omR15vtMIihJ/UyWu5kN vhh4UAJfzqVjqoU4Yn/qvrdFmI9HhOS8XMPoyDQX7IqOT67GiI4t0iNGiBpwrVSj91 vrwdvz1wa8bbT7kObE8rWc4/FVEY1DnC7ekpp5PqjD9KNX6V2IC Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bwQNG41Tzz6twH; Mon, 4 Aug 2025 07:39:10 +0200 (CEST) From: Olivier Rojon To: Stefan Huchler Subject: Re: bug#41121: (Keyboard-layout) form does not work "across the board" In-Reply-To: <871rn9utch.fsf@mail.de> (Stefan Huchler's message of "Sun, 24 May 2020 19:37:50 +0200") References: <7d29a1f07e7656f042551876ec6f2b44@posteo.net> <871rn9utch.fsf@mail.de> Date: Mon, 04 Aug 2025 05:39:10 +0000 Message-ID: <87zfcfprwi.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 41121 Cc: 41121@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hi Stefan, thanks for your input, even though my reply now comes... five years late ;-) I see that there was no bug but a simple misunderstanding on my part. Since the problem is now very old, there is no reason why this issue should still be present. I will thus close it, in the interest of queue hygiene :) Have a good day :) Stefan Huchler writes: > o.rojon@posteo.net 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 01:41:20 2025 Received: (at control) by debbugs.gnu.org; 4 Aug 2025 05:41:20 +0000 Received: from localhost ([127.0.0.1]:48320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uinwm-0008Fe-HU for submit@debbugs.gnu.org; Mon, 04 Aug 2025 01:41:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55163) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uinwj-0008FE-Tc for control@debbugs.gnu.org; Mon, 04 Aug 2025 01:41:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E56AE240028 for ; Mon, 4 Aug 2025 07:41:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=1984.ea087b; t=1754286071; bh=exQ+yi/98f2d7l7TqMdN+lfkQMncWFEulDuh+K7y9+U=; h=Date:Message-Id:To:From:Subject:From; b=ityHDooJuUWs2mi50NphC7gTg5BTxvvrZiBnSsQbWxbxXW9kQehQ/4hq3jY5rUQ9t 7fyzd3ko80mc1T1felh92XuxXH9LS0qEdGfwE2KicgZcA1YzvcLqXPJaPlZLmQUrfM t6jiTm9/bKINHAKz8pMo+Pa2sGbVpdT4IuDNdofrjSAEetQpc1Uvq96yCHLAvSW60w yHsXbZWPPHafwnhEN+msNrTHwf+HYFEUSh7/WmA9C+kPmPRjqh/vwys3oCWNqFOa2j aFIP7jAXSYuLjVmTHtqtRbCbVAfhIPvpVD8VnAX90deiyLtBfH+lViu7xQSvOXKDwJ ZRjzLWjhUGbPPtwpw1tD5aHUCPlecwZfV0n0tAieHbsolJQDmqyOvg5QnrcYhX16ms t40J59d73Vo7Ssblxmoj1b48MLJkZUTck6CHgOVhVhpwQ6A2fuCFUOM15JkCDiZCsR YTMIIrbF7DAfpxtXYwQFlwKAoYZpDqawqibxiMaM6NrpL3a2TUX Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bwQQb2YxPz6v0b for ; Mon, 4 Aug 2025 07:41:11 +0200 (CEST) Date: Mon, 04 Aug 2025 05:41:11 +0000 Message-Id: <87y0rzprt5.fsf@posteo.net> To: control@debbugs.gnu.org From: Olivier Rojon Subject: control message for bug #41121 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) close 41121 quit