From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cKEFJU6d42BgLQAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 02:01:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WMfEIE6d42BdYAAAB5/wlQ (envelope-from ) for ; Tue, 06 Jul 2021 00:01:18 +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 C0C102148B for ; Tue, 6 Jul 2021 02:01:17 +0200 (CEST) Received: from localhost ([::1]:51408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0YWZ-0006jg-VM for larch@yhetil.org; Mon, 05 Jul 2021 20:01:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0YWM-0006iw-CC for bug-guix@gnu.org; Mon, 05 Jul 2021 20:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0YWM-0004EG-4P for bug-guix@gnu.org; Mon, 05 Jul 2021 20:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0YWL-0004ll-SN for bug-guix@gnu.org; Mon, 05 Jul 2021 20:01:01 -0400 Subject: bug#48974: A possible shepherd bug (it's very minor) Resent-From: Joshua Branson Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 06 Jul 2021 00:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48974 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48974-done@debbugs.gnu.org Mail-Followup-To: 48974@debbugs.gnu.org, jbranso@dismail.de, jbranso@dismail.de Received: via spool by 48974-done@debbugs.gnu.org id=D48974.162552960618137 (code D ref 48974); Tue, 06 Jul 2021 00:01:01 +0000 Received: (at 48974-done) by debbugs.gnu.org; 6 Jul 2021 00:00:06 +0000 Received: from localhost ([127.0.0.1]:46864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0YVN-0004ha-60 for submit@debbugs.gnu.org; Mon, 05 Jul 2021 20:00:05 -0400 Received: from mx1.dismail.de ([78.46.223.134]:23192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0YVK-0004hK-WB for 48974-done@debbugs.gnu.org; Mon, 05 Jul 2021 20:00:00 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 5580077f for <48974-done@debbugs.gnu.org>; Tue, 6 Jul 2021 01:59:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=20190914; bh=RxjTGOcc M92W8ZBv4FBjK+JigB3itbkBjifiDZdsI/s=; b=QaKWfKOUmZsgCSzdgieTThaU EzP5uWPppyQdZ7OLT/kd2br/E3/Rsh32RWYY3Yn5hH9as/xApv/O072GPVzK/yw2 hjAc16Uw5rMMTyUDWDpIdgMu5g6luzv8p230LX2uqiQU5gxRkul4MDElgbF3L7q3 hDCXlt1IHT+hwQ7Q5F7mm/AuaUHSS3KnsOIzJrI6z2gnO98ftQpgSn3W+w0J2iWJ Kx2EIsAEbcvbNz69YHMW3JDvy/KLeshSXjjOBTstg+2LnH043t8RbZDFVKgaMgkE +Up7Uh4fR5sbFjZTLnGT1iJ9ZgcDlTD2aWiw3pHf7OFEeezOj2GRpxILNzTU2w== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id d9a114e7 for <48974-done@debbugs.gnu.org>; Tue, 6 Jul 2021 01:59:51 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id b59dfdf7 for <48974-done@debbugs.gnu.org>; Tue, 6 Jul 2021 01:59:51 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id da3617e7 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <48974-done@debbugs.gnu.org>; Tue, 6 Jul 2021 01:59:50 +0200 (CEST) References: <9d5c5334eacfae92ace38329e55bc4a91929e206.camel@student.tugraz.at> <87wnqz43k0.fsf@dismail.de> <3192d62ef790c16fb2dfb894d9ccb160@dismail.de> <13bff20e418f1cec97cdda49ffed51544c5c9402.camel@student.tugraz.at> <87mtre5lzy.fsf@dismail.de> <6254e4d32697986bd61986e10399f341930c5c2e.camel@student.tugraz.at> <875yy1vmy7.fsf@dismail.de> <595245e54b3199173b9e47992d770caa4f807312.camel@student.tugraz.at> <87y2ao728t.fsf@dismail.de> Date: Mon, 05 Jul 2021 19:59:43 -0400 In-Reply-To: (Leo Prikler's message of "Sat, 03 Jul 2021 08:41:08 +0200") Message-ID: <87zgv01fdc.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Joshua Branson From: Joshua Branson via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625529678; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=U2PAnNmyOiyAO+MIcK2p8gSx9rCKH6ft44l1pvkrxJ4=; b=nGmkGzjqGdGUwcKFZbtD6YSCCcmULvE0YogWfbenqR+JifYaFLLKDIIfZAiodFi0wCm7yM J/1df2xoA25PgooOYqjNoW+OvezIRK5sSTF4s+o+XGJ5tVuxPI5PZBMaiAPCfc1ZUfmUw6 xyDbGrBotEfVqriV0lwNj1GcJ0UhY5+XovuKrnFi5e8IHwyJsoXgnDMFTAkyhKD8cluJEs cgWITTkE0jQ+sqivPkeqCORkImlQkTGWCvAN8Y041gqcrCH8AU5677VXG0HQ9y2toDGT8g PHRNPOI9Na3Sy9j/Fcmbj45MfOoo1H3FyKCtwYkLbgd7ANfwD81uqtAv8Es2bA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625529678; a=rsa-sha256; cv=none; b=KZZZkEkBOPzzz2wjGvT1Rw3/FLlPByMtuq+3Kc6j+27UJOZKuxIZssAsumnP7UPWMA1KgI UVnGoO5ntDeaYX8NTnjsowt6HuK6PYYndF40E4ePPpTDxC6LH5/xQvoaJt7ZbQmefwT5L+ YmlJztpDGUADujh4jLrKpiyEhWU2mupgTMOgTV23SEYraCukzwrA3jP+U6/ae3+ODpw/Xc orFeu00qATJ7V1kavNGMKuHKUubi7/ylrD7u2KLgRbWe0eMhhCNMoClYQEQykJ1cOEhvKa dbjCKm0MMNGEC5/5ziP+MRFXDQ6Q+KKBfwmsIaVmifphRXZcaq4lnyht5q8Yig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=QaKWfKOU; 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-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=QaKWfKOU; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: C0C102148B X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: JvL4Xcv6wy5/ Leo Prikler writes: > Hi, > > Am Freitag, den 02.07.2021, 18:57 -0400 schrieb Joshua Branson: >> Leo Prikler writes: >>=20 >> > Am Freitag, den 25.06.2021, 14:06 -0400 schrieb Joshua Branson: >> > > Leo Prikler writes: >> > >=20 >> > > > Hi, >> > > >=20 >> > > > Am Freitag, den 25.06.2021, 05:31 -0400 schrieb Joshua Branson: >> > > > > Leo Prikler writes: >> > >=20 >> > > Thanks again! The current code doesn't quite work for me >> > > yet. I'll >> > > try using match-lambda to define it. I'll post again when I have >> > > a >> > > free moment. When i get it working, I'll send a patch to the >> > > manual >> > > via guix-patches and CC you. Is that ok? Or would you rather >> > > that >> > > documentation be in the cookbook? >> > Did I make a mistake or does it do the job only in a somewhat >> > inelegant >> > way? I'm perfectly fine with the latter as I'm not the one using >> > the >> > code :P >>=20 >> I've got some code now that works! >>=20 >> #+BEGIN_SRC scheme >> (define (auto-login-to-tty tty user config) >> (if (string=3D? tty (mingetty-configuration-tty config)) >> (mingetty-configuration >> (inherit config) >> (auto-login user)) > Why do you need to inherit the config, when it doesn't change? Seems > like a pointless allocation to me. >> (mingetty-configuration >> (inherit config)))) >>=20 >> ;; allegedly %desktop-services now contains network-manager- >> applet...? Can I remove that? > Not with modify-services, but there's some filter example in the manual > as well. >> (define %my-desktop-services >> (modify-services %desktop-services ;;end of remove services >> (mingetty-service-type config =3D> >> (auto-login-to-tty "3" "joshua" config)))) >>=20 >> #+END_SRC >>=20 >> > I think the cookbook is a better destination for stuff like this. >>=20 >> I agree, but we should also probably fix the manual: >>=20 >> 10.1 Using the Configuration System >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >> System Services >>=20 >> For example, suppose you want to modify =E2=80=98guix-daemon=E2=80=99= and Mingetty >> (the console log-in) in the =E2=80=98%base-services=E2=80=99 list (*note >> =E2=80=98%base-services=E2=80=99: Base Services.). To do that, you can = write the >> following in your operating system declaration: >>=20 >>=20 >> (define %my-services >> ;; My very own list of services. >> (modify-services %base-services >> (guix-service-type config =3D> >> (guix-configuration >> (inherit config) >> ;; Fetch substitutes from example.org. >> (substitute-urls >> (list "https://example.org/guix" >> "https://ci.guix.gnu.org")))) >> ;; it looks like the manual is telling you to set up >> ;; auto login on ALL ttys. >> (mingetty-service-type config =3D> >> (mingetty-configuration >> (inherit config) >> ;; Automatially log in as "guest". >> (auto-login "guest"))))) >>=20 >> (operating-system >> ;; ... >> (services %my-services)) >>=20 >> How about I delete that section in the manual about automatic login >> and >> instead add this to the cookbook? > No. Read on, the manual clearly states that this affects *all* TTYs.=20 > Presumably the guest user only has access to su and logout, maybe guix, > but in any case they ought not to have access to anyone's $HOME, not > even their own. > > The thing we've coded up here is a more involved process to solve a > particular problem rather than a general demo of what services can do > and thus belongs to the cookbook. > > Regards, > Leo > --=20 Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar =20=20