From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aJRQISyhL2cdbQAAqHPOHw:P1 (envelope-from ) for ; Sat, 09 Nov 2024 17:51:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aJRQISyhL2cdbQAAqHPOHw (envelope-from ) for ; Sat, 09 Nov 2024 18:51:40 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm2 header.b=VOllxlBt; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=WvLxQiRO; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731174700; a=rsa-sha256; cv=none; b=edRLUHg7f/vxUq8EjPP0nadRlEBWiCZ3rttMeIjycOevkQewg/DA4X/KEQvmdtCX+EQTb8 CeUWZ95C037/i7B7enEK+AjvBj0qausLOLOVjZDmngxJr7tKp/EYy7EsHiA9Desbyr2qMx +g1lxidaFwVaxs45nTJ0mhjmc7ZmJ8xQZLupqZJqSVHpH/HYxsISYHErE3fosVNC2iZd78 S11FBIz1zYnthCfSN2PYcTSH3ZVnplRodWJnQfSvtlThH/fCo4VRhRwpJNHsSpgkmYZ5V7 UyNuADt8iKIUPCjmwbeGmRs0pgAychRwspg1REJ98gGHpu76IYP6Mml0AQJjqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm2 header.b=VOllxlBt; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=WvLxQiRO; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731174700; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=x5Px42jBHUyAW6MM/aHfProZFERPwI6jwncYV4uyX6Q=; b=J9BVm9HorJvOo6RszeK3Zvkp2aBwkahKqztQR42M2S/8jSKIAsKIkKzQi2mroJOWXPsBKn JEBXjzURUKTu2uGB76xBSLSvCWgjWAQqJidG16h2DSqiz7jIo5jV297n/KVeSd5sHySoa8 N+3sLisQqxEV01qyTbbchDw/f6vCN67SVNx0/ijssc1K/fyS7GicXJnT46JXLr8h8d0E8+ EzCZ64IQiSoHSV1ZAenxfI1GO3hkeeu6kaseaMQDOfdVP8aW1LCvfkyXYs0CVdgeGJvz/j vGjTBl4x9IIyxm6vphhDi05YLc32aRt+M0cEAqKWsp8kGtfnm+Su/kOoQpvkaA== 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 6C6A461BE9 for ; Sat, 09 Nov 2024 18:51:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9pbz-0002DT-Qq; Sat, 09 Nov 2024 12:51:03 -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 1t9pbu-0002Cr-Dn for help-guix@gnu.org; Sat, 09 Nov 2024 12:50:58 -0500 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9pbs-0007lZ-61 for help-guix@gnu.org; Sat, 09 Nov 2024 12:50:58 -0500 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2AEB02540134 for ; Sat, 9 Nov 2024 12:50:52 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Sat, 09 Nov 2024 12:50:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1731174652; x=1731261052; bh=x5Px42jBHU yAW6MM/aHfProZFERPwI6jwncYV4uyX6Q=; b=VOllxlBtasi6QRgsw6lYc4E/yi XK2AFDkN+WmNwcj6rE47gzjOn5S5frct0iUjj9gBB3kPWm04ezh64k1gn4ZlXaV9 mq/HHbz4i2rvoHATvdt8RIG29KvIjKkUov5lF56XphL+R0t3pzhf2joMN+/UAYTb X37npI66PGWNszrHK1wxGkCBKw+IZguxDQFcPbYOeKGhYuZ9p1Qs41JCprJdMwQk ROUfREjyp2iw2AcU8fM+Y0fM7+ZtX93ydyY0hZd7+tKZyguiV/n6XGciOJQZ/T0u WlBOtJS6Mmlw1HNbDDS9IgQ7VW3YGM/qQq4XQlXLLZ0tp9oDqvgsJiDFQ9Rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731174652; x=1731261052; bh=x5Px42jBHUyAW6MM/aHfProZFERPwI6jwnc YV4uyX6Q=; b=WvLxQiROETt5IsAkN169VPHJqhHk3QPPP6UsYojyyb0GDOgmC0H 23I/w070xVPOnDLorLuAkvf4bN7iQViVZNxwneAmPWSSqM5vyF5oS2sT6m+w1vCb ZbLoibNuFSbSmrHaeo+GV2R0xJdwWYdauS6VI/wuAY8JijmRNKGlzXF0wv9SwIkx 4lKAshCc3uVMwLJ8i1eaRe4JdRHjt4+zSVS6HCOCGlU9/OQsF0xpZYW9AzMvCGNU 3O4ydSd7d+DV5xagKsz/0ngwYymoP8UdGb+Q+kcvC+Rls+3cBpfP9C4ZfJD8NKXo 5y+rktFhiEXewvd/DskxTeXEQ8EwQZqUiJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdekgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvuf ffkfggtgfgsehtqhertddtreejnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghnsehr vghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhepkeeigeegfffhlefhgfeiff evjeejhedvjeffieeifeeiteelveduueeljeehheejnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtgdrthhvpd hnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhvghl phdqghhuihigsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 9 Nov 2024 12:50:51 -0500 (EST) User-agent: mu4e 1.8.13; emacs 28.2 From: Ian Eure To: help-guix@gnu.org Subject: Modular home configuration Date: Sat, 09 Nov 2024 09:35:10 -0800 Message-ID: <87y11s1ekj.fsf@meson> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.157; envelope-from=ian@retrospec.tv; helo=fhigh-b6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.68 X-Spam-Score: -1.68 X-Migadu-Queue-Id: 6C6A461BE9 X-Migadu-Scanner: mx12.migadu.com X-TUID: 3rdPh7jM2ZoY Hi folks, I=E2=80=99m trying to make my home configuration more modular, so I can=20 better support system variances. For example, I have a laptop I=20 use interactively, and a headless machine that runs Cuirass. It=E2=80=99s= =20 advantageous to share certain aspects of the home configuration=20 between the two machines (shell prompt/environment, GPG agent,=20 etc), but not others (anything X11/graphical stuff shouldn=E2=80=99t be on= =20 the build machine). One approach to this is to define packages=20 and services and reference them in the home configuration. What I=20 dislike about this is that many things require both packages and=20 services, and I=E2=80=99d prefer to have a way to completely encapsulate=20 that -- for example, the mpd-mpc package to control my music=20 server, plus a home-environment-variables-service-type to set=20 MPD_HOST. I attempted to solve this by writing a procedure: (define (+mpd-client home-config) (home-environment (inherit home-config) (packages (cons mpd-mpc (home-environment-packages=20 home-config))) (services (cons (simple-service 'mpd-environment-service home-environment-variables-service-type '(("MPD_HOST" . "audio.box"))) (home-environment-services home-config))))) Which I can then wrap around a home-environment to add the mpd-mpc=20 package and environment variable it needs to work: (+mpc-client (home-environment ...)) Surprisingly, this doesn=E2=80=99t work -- it complains that there=E2=80=99= s more=20 than one "home" service type. I=E2=80=99m not sure why that is, and I=20 haven=E2=80=99t been able to see anything obviously wrong in the REPL --=20 though I haven=E2=80=99t been able to get my actual home configuration up=20 in the Emacs-Guix REPL, due to #67290. Does anyone have a suggestion for a workaround for this issue,=20 explanation of how two home services are ending up in the config,=20 or a better approach for building modular home configs? Thanks, =E2=80=94 Ian