From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gGCPA7rItGJiZwEAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 22:10:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gOtjA7rItGLpVgEA9RJhRA (envelope-from ) for ; Thu, 23 Jun 2022 22:10:34 +0200 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 C49591FC7F for ; Thu, 23 Jun 2022 22:10:32 +0200 (CEST) Received: from localhost ([::1]:44638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4T9r-0004cy-Ec for larch@yhetil.org; Thu, 23 Jun 2022 16:10:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Puh-0005O3-Q0 for help-guix@gnu.org; Thu, 23 Jun 2022 12:42:40 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Puf-0004OO-MK for help-guix@gnu.org; Thu, 23 Jun 2022 12:42:39 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id DA2D95C00CC for ; Thu, 23 Jun 2022 12:42:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 23 Jun 2022 12:42:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trevdev.ca; h=cc :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1656002555; x=1656088955; bh=MH9TQigvCXimqHsJ4LWOowIW/oJw39ApViN yhzq9Iik=; b=sRK1zO2fmvjj4xXbHb6y4A6mXZ0R7/0y6l+l3ibtDkvcRfzLKKV EkU/0e043mr5ip0wVBBAVofY5DUundApNc7Ke+TFkZ6Tms3NQvdQMyvVXFDj1rzz frR+vLXd4Tq0fkIkzKdIblUh1qwGKyPxfEcQIlPrqCui+1c+Zfb+zGFUKx9qtriF q4hYnedDcFDuEa1stNZEFr35w0nk+4kGzwBgHpQ4RYk883GoSCohB3rMKBHZiLGw ND7pk/lLTm1PRz53g6Dpmi6f/bnMWcpaQCtav3Kep913DAXKIZ7644qD0ctEBiYX 9xJYaEJpj6L9KIxTCbPgg/dsQhghrxLqMrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656002555; x= 1656088955; bh=MH9TQigvCXimqHsJ4LWOowIW/oJw39ApViNyhzq9Iik=; b=o 6g+BSRazuux3krYmh+fzDYXPUC8DJveet8t5MIorSScZldwv8p7jVXIijhQlnIDD jruLtdUrXGc6Cp+9Kwi3AoyH1R0YIIndXpLySQzH18ImhHwBdS1x28W/NKdYiHcV 4gy88JfvCZZlXjdt62fatQiDNrhVIl+uOTGA9FHOgK1LRT8axhdT84yb5yd4Q+Ut aPrx4Iz7K/uzPhEbSiKCabYNzn5CE5Z48Xp/sehopN7tmSCNlAGujalAybLK2kFr uI2wyG2hN8ULjGX9JMn7U1KgIp1FkrjJtzVxRZZWvGcR+BHMyokCphWvpX8Y5gRX uMFiBAP5QHI9ZCVi5nufQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkgggtsehgtderredttddtnecuhfhrohhmpefvrhgvvhcuoeht rhgvvhesthhrvghvuggvvhdrtggrqeenucggtffrrghtthgvrhhnpeejveekueeiteejud ffgeduueeiieefiedvvefhjeelkeetkeejudeghfelveeuheenucffohhmrghinhepghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhrvghvsehtrhgvvhguvghvrdgtrg X-ME-Proxy: Feedback-ID: i762946f9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 23 Jun 2022 12:42:35 -0400 (EDT) From: Trev To: GUIX Help Subject: Guix home mcron help Date: Thu, 23 Jun 2022 09:42:29 -0700 Message-ID: <87tu8bib62.fsf@codinator.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=66.111.4.28; envelope-from=trev@trevdev.ca; helo=out4-smtp.messagingengine.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, HTML_MESSAGE=0.001, MANY_SPAN_IN_TEXT=1.336, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 23 Jun 2022 16:10:08 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656015033; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aRtOpgsodFQcjQIwZLjxDGGkMk3573ZMSNYqxL7JnpU=; b=L6qRVCT92BfczHkRB3zXp9vUTHGxEnc9W+g5NVJXn9qKx1IP8V8sbKXpBADni2SfYVUkE6 NjfDsnDmoUZZ4bExcrpe3uvuxd/cKwCKnqbn3Pg23uC99ZV5wGkbkLtuhg28UKYKCyoXoi dimH8M9EA2xMQPpmw3aHmHsKxniRbTkVCfIkz83QSrohKkkfWMaLOUgVqvBc7anfb8TsLm zaxDWDtDYtHRNVAYKR12wffoOQswXmzxnZOpzUJR16+cdtwf2hbCzT37n5x/A1F5kE1pBS D9Pg8kumACqKvLYIc+6tndIqxLvHynIFev+DG3Bi79Wl767LUYI+I1Gx7Zew3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656015033; a=rsa-sha256; cv=none; b=M34UbZD43+rDS7zpxyy39ATCXo1ZkfYL1Bu8pUTlIYjtRVKjc8erOuQ65unv5OtS+OMGP9 Pifz/WPWiOCUDG+TudRljV02+WFIxaFtryUGebfyw7MXpIbQdLUl2NEZtOMGlO4g3c5KaK 6pdoH7NOhVjST2LK789kAWy1dPV36LJdA3nlv9CqooLT04JydMuqBdcyjEnyTGrngOkS7W y8aGVaFp7Us/zKLTHemuxRZ6+ujbHGehwsykRSGV47PMtM/bkbzGIR0Zw8EuPzSnEhAFpr 1gDdnrURslso1W2eX5PEXRbztzJv6CG8lGswUtUc2rRJOVqo5T53JBXDIDEE/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=trevdev.ca header.s=fm3 header.b=sRK1zO2f; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b="o 6g+BSR"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=trevdev.ca header.s=fm3 header.b=sRK1zO2f; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b="o 6g+BSR"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C49591FC7F X-Spam-Score: -1.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: QrdpQqYB49Qc --===-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hey guys, I am trying to appreciate how to set up a guix home mcron using a separate module that I wrote that exports the job. My config lives in ~/.config/guix/home/config.scm My cron module lives in ~/.config/guix/home/cron/mailsync.scm The mailsync module export this: #+BEGIN_SRC scheme (define-public %mailsync-job #~(job '(next-minute-from (next-minute) (range 0 60 15)) (lambda () (mailsync-update %mailsync-default-terms) (mailsync-notify (mailsync-count-new-messages))) "mbsync-nm-job")) #+END_SRC In my home config I am using it like this: #+BEGIN_SRC scheme (home-environment (packages (specifications->packages (append %base-packages %emacs %multimedia %browsers %chat-clients %devel))) (services (list (service home-mcron-service-type (home-mcron-configuration (jobs (list %mailsync-job))))))) #+END_SRC The command =guix home reconfigure ~/.config/guix/home/config.scm= passes without errors but the resulting cron is unhappy when it runs because it has lost scope of the module it came from and can't find =mailsync-update= (or any other definitions from within said module). I have attempted to implement =with-imported-modules= from within the module and from within my home configuration and am not having much success. Can I get a push? Here's a link to the config and module in full: https://gist.github.com/trev-dev/3312444daa75758822c06db5922aac4f --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Trev : 0FB7 D06B 4A2A F07E AD5B 1169 183B 6306 8AA1 D206 --=-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQTXT7EGCbVt/Iwh9m+FRs+EoT3V7wUCYrSX9RAcdHJldkB0cmV2 ZGV2LmNhAAoJEIVGz4ShPdXvvOABAIBmFLrrFHOyBCRABcWwt7NdKJGeGvHmP4v1 ytqSkCXKAP4zN4WRqSvMVoeY65dTTZvdS1CEWUuqNOt6j3RPG9RPAQ== =8iKH -----END PGP SIGNATURE----- --===-=-=--