From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mETkNAKxyl4dAwAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 17:38:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cLjOMAKxyl4zCAAAB5/wlQ (envelope-from ) for ; Sun, 24 May 2020 17:38:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 68F9C9400C3 for ; Sun, 24 May 2020 17:38:10 +0000 (UTC) Received: from localhost ([::1]:60828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcuZd-00053X-EH for larch@yhetil.org; Sun, 24 May 2020 13:38:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcuZX-00053Q-6w for bug-guix@gnu.org; Sun, 24 May 2020 13:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcuZW-0006QZ-Tz for bug-guix@gnu.org; Sun, 24 May 2020 13:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcuZW-0003uQ-Qu for bug-guix@gnu.org; Sun, 24 May 2020 13:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41121: (Keyboard-layout) form does not work "across the board" In-Reply-To: <7d29a1f07e7656f042551876ec6f2b44@posteo.net> Resent-From: Stefan Huchler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 24 May 2020 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41121 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41121@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@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 ) 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/ From: Stefan Huchler 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.9 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mail.de (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: AC/Z0IylXzJz 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.