From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OAe0EfpI5mPSXgEAbAwnHQ (envelope-from ) for ; Fri, 10 Feb 2023 14:39:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kOvREfpI5mMCNQAA9RJhRA (envelope-from ) for ; Fri, 10 Feb 2023 14:39:06 +0100 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 829B7F64C for ; Fri, 10 Feb 2023 14:39:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQTbd-0001Ov-Gz; Fri, 10 Feb 2023 08:38:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQTbV-0000xt-Ry for guix-devel@gnu.org; Fri, 10 Feb 2023 08:38:18 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQTbR-0007dW-Kz for guix-devel@gnu.org; Fri, 10 Feb 2023 08:38:17 -0500 Date: Fri, 10 Feb 2023 13:38:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1676036290; x=1676295490; bh=iaYLJ+vkRRs82FfUvYYLi22zfyKBbPrzDSB57Zd0iXg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=NWwnbvgX2mbvVAOsqldqB4YI/Do5Ceh7wEhfcvfp5lFF41nFG3ZYtADm7sHm9iE6m wJVteNb2s0m+QqM5V8hTBNQxl7ebVVdcq532kY2Z3ZhU4CAn9V77l2Mnm1/FmmeClT BhhczV8uEWH9yGU3SFdt3yCrMneJ6wkAHDnEeqRINyOY8ufNeSCBiim36vrdk2XgLD QahrOxI2CqNq31blasfDoRakCeocj1WGYNZLVDbIJb0vzce+523OF4DN7XTqHYf79K 8hKwAUggW8SyESXLfsp7A5t4bCik2BnEZmJF31bc7OUT5ke/wOS89r7WHIXFMTnafe VtpRWL3ZJCLDw== To: Attila Lendvai From: Attila Lendvai Cc: guix-devel Subject: Re: [RFC] refactoring extra-special-file; an /etc/tmpfiles/ equivalent Message-ID: In-Reply-To: References: Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=attila@lendvai.name; helo=mail-4317.proton.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676036346; a=rsa-sha256; cv=none; b=GC0sivJ4DNjsTzxi5K2j4f1zo2IyYAi0ErwWfL/gtiRR85IIj6oxKuQSI2+HpRfHMyMeAB YBkT2FNGPFkPWltrQGzZe4BZ+yov7QgY++aTEi6SNGwGWr8cNxA5ExU1oT8no0TFhlFxeX cVmgSQzG/CgnypZgd0JeRrVFPByd3rMqmhjRhIl5E9FESEzs52jDj+KgLmL1Cg/DfuGjh8 Q6YLPUAiaZzcXaYoSvZR+0zN4I5T6BHlWBJ3UwFiFfbjUvzFzYkofZvYIfc7/hq+MhfNAI T2yScUH4kG6J93CfxbzdhvEbBZOs3SmS5vdGasnV/R8MHWP/5/ZMi1gWUtqCgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=NWwnbvgX; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676036346; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iaYLJ+vkRRs82FfUvYYLi22zfyKBbPrzDSB57Zd0iXg=; b=GCBx3WtKxbMLkmmqvqzRGzBbQa/A/4bDGtKisQfpL9RSMKq+h39O/Z/15Tdh8xNhHHocnO 6t78RDJooXzysa2mYd0qZ955AAdPdyQbKhgQFk08F/0hYqkwy1+4bNmkIlvWMByIO6a5EZ EaDmO4rqVjUUvNbAL0FItvyb/Xf+WvSHj8TZ2z2Rx9yALrcvYla6zjqDDBkjKmGUrNC0i8 CFNaO4OX1f/oz6NAo2ujKqwbSPMtcvf7Qtgdrj7sCw08OG0T9XA4J6yJ5f03emtVcMEI6V xWHkNof8SHtuCDKnnE62Xja1NqvOllvzAyrlsjc5B3ebbM6bJX9NJWYoUevTIw== X-Migadu-Scanner: scn0.migadu.com X-Spam-Score: -5.47 X-Migadu-Queue-Id: 829B7F64C X-Migadu-Spam-Score: -5.47 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=NWwnbvgX; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: ACONgvKX+lIO > FTR, the "guixy way" currently is to add a service like this: as mirai kindly instructed me on IRC, even though it's a somewhat widely sp= read solution, this has issues, as documented in: https://issues.guix.gnu.o= rg/60657 instead, the proper way is to add a full-fledged one-shot shepherd service: (simple-service 'disable-keyboard-wakeup shepherd-root-service-type (list (shepherd-service (requirement '(file-systems)) (provision '(disable-keyboard-wakeup)) (documentation "echo XHC >/proc/acpi/wakeup, so that my USB Kinesis key= board doesn't wake up the laptop right after a suspend") (one-shot? #t) (start #~(begin (use-modules (ice-9 regex)) (use-modules (ice-9 textual-ports)) (lambda _ (when (string-match "XHC\t S3\t\\*enabled" (call-with-input-file "/proc/acpi/wakeup" get-string-all)) (display "Turning off usb wakeup\n") (with-output-to-file "/proc/acpi/wakeup" (lambda _ (display "XHC")))))))))) and while we are at it, a newcomer feedback: it's super confusing that there are 'guix services' and 'shepherd services'= , and they are rather different animals with very similar names, and they a= re present in a very confined context. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CI will have to remember =E2=80=98I am here today to cross the swam= p, not to fight all the alligators.=E2=80=99=E2=80=9D =09=E2=80=94 Rosamund and Benjamin Zander, 'The Art of Possibility' (2002)