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 ms1.migadu.com with LMTPS id iHjkLlK7L2Y2hQEAqHPOHw:P1 (envelope-from ) for ; Mon, 29 Apr 2024 17:22:58 +0200 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 iHjkLlK7L2Y2hQEAqHPOHw (envelope-from ) for ; Mon, 29 Apr 2024 17:22:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b="OtMVTX/k"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714404178; a=rsa-sha256; cv=none; b=ORZm3BrArAZUwqHt7eTW5FlVlBslXDNLekKbI0pTJ0xmSd7me2K3opa6ebnvGOIZmgjLGd uzqH7xxcW19RVcwarFLGjWk4vnu9Q0/1dSxYy85FhFB2ICFSjfBxSNW75JlqOqw352zRqp XoEIEy3HDk9nzGvw8jRua3s20k/0Td6QqkKtcS9oOP0qQObPwatI/hAkU2hnaShdQpbtnk nlHADzh24JtwIGYzQYBnFfGFhYEZhNByGFmRyVsO2YH1jCfIDmNnT+N0pdqOf/dy/cmfSW 0zu+FOZP4jVfiL2Iu0scbYEhRs5AanIaBLsWGWqVB3059QIngG4VWroJtfJynQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b="OtMVTX/k"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714404178; 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:resent-cc: 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=OjUJZ208UPEaareE8CWRmTeR48h+eaktCFgAT4Kxgeo=; b=p0t7SI+yYSW27DOxue9tvJLUHVdhRHupBFX4jzVR7DjFkSYOgjJpJJrniLPirFUQWGn2QW LaJG/Om3wMJoYArMbM01fWiDDKsTv8w+P6GyticJ3Nxaai3i0wRrGYfCaWIjf+DrncKDQQ nItr5xRqff05Ueyj7Lkdu+GFTqH6AmrBfxdvWovAuqVhGdj3pkVFzn3rYTvzi2GHC1W4Xi BXHmX2c9WKt4AluUuDR7Ra97mfP6iw0V1eqOdsfjCAbh3KCMB9uWa15e/zSkFHmpZsz+mn 2LE/XzUjMyEbdnaee02bjOC/3Z38k4d2jWI6egY9GZ7ZLxkLnFretbq88oSg5g== 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 93F711BB5B for ; Mon, 29 Apr 2024 17:22:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1Sq5-0002PV-Mx; Mon, 29 Apr 2024 11:22:45 -0400 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 1s1Sq2-0002P2-Ne for guix-patches@gnu.org; Mon, 29 Apr 2024 11:22:42 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1Sq2-0005yk-FI for guix-patches@gnu.org; Mon, 29 Apr 2024 11:22:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s1SqM-000475-FF for guix-patches@gnu.org; Mon, 29 Apr 2024 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69781] [PATCH v2] services: Add the Guix Home Service Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Apr 2024 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69781 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 69781@debbugs.gnu.org, paren@disroot.org, Tanguy Le Carrour , rustand.lars@gmail.com, Andrew Tropin Received: via spool by 69781-submit@debbugs.gnu.org id=B69781.171440414215801 (code B ref 69781); Mon, 29 Apr 2024 15:23:02 +0000 Received: (at 69781) by debbugs.gnu.org; 29 Apr 2024 15:22:22 +0000 Received: from localhost ([127.0.0.1]:57774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1Sph-00046n-Pt for submit@debbugs.gnu.org; Mon, 29 Apr 2024 11:22:22 -0400 Received: from mail-108-mta217.mxroute.com ([136.175.108.217]:41715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1Spe-00046g-7Y for 69781@debbugs.gnu.org; Mon, 29 Apr 2024 11:22:20 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta217.mxroute.com (ZoneMTA) with ESMTPSA id 18f2a72baf60008ca2.002 for <69781@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 29 Apr 2024 15:21:53 +0000 X-Zone-Loop: b9b18518e0467c2276c5ae46c03114a0215171ec2302 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OjUJZ208UPEaareE8CWRmTeR48h+eaktCFgAT4Kxgeo=; b=OtMVTX/kR2JoXwTJabtVGaCctT +SK5wmv1AN/iU9ec3We7SwAW8c5XDjKQf542yI0ZY1l4L3DDJ+XU+DHqH/+m05dSTY/oeYV7NFOe+ nLr/NQSRGx4Yur6GNwCHgryipDyu/pWnJIEIyrd4pXJmPc7MeUwpTOIuPdMfPvFgbuSE8a/Tssiud e6crq9E+Y+JG6VFMXXX/i5mgFIFMFEty6Db1n6L6LzBTsNfxmjLdIwcCy7mGdsC6lmEblo07sXXS0 usHZ4uTUiWnqI3ZHEhKdn3bxnIoATxha4NclM2LB7x5imGItJV+yFz5Fc+fo05QFjlGNPNK//jKZq F4z1bTfA==; From: Richard Sent In-Reply-To: <87le4w1e2l.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 29 Apr 2024 15:41:22 +0200") References: <05fd930c91838ce9640720ce68e3379f10154590.1710355300.git.richard@freakingpenguin.com> <3394b0b51f6a5a608ebcfb7a63fdc34e52fe928e.1711046203.git.richard@freakingpenguin.com> <87jzkgfpbp.fsf@gnu.org> <87le4w1e2l.fsf@gnu.org> Date: Mon, 29 Apr 2024 11:21:44 -0400 Message-ID: <87il00yz1z.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: richard@freakingpenguin.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 93F711BB5B X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.89 X-Spam-Score: -4.89 X-TUID: UAysqkajulzh Hi Ludo! Ludovic Court=C3=A8s writes: > Ludovic Court=C3=A8s skribis: > > Silly me: I was using =E2=80=98home-service-type=E2=80=99 instead of > =E2=80=98guix-home-service-type=E2=80=99. =F0=9F=A4=A6 > > (Interestingly, this has no effect at all, but nothing complained, > either.) > > Works like a charm after switching to =E2=80=98guix-home-service-type=E2= =80=99! :-) Thanks for the response! I just started investigating that and was close to entering the "losing my mind" phase of debugging. Glad to hear it does in fact work! >> 2. =E2=80=98guix home describe=E2=80=99 isn=E2=80=99t prepared to deal= with that: it returns >> information from the last >> /var/guix/profiles/per-user/$USER/guix-home-*. > > That issue remains, but it=E2=80=99s less of a problem. There are definitely some potential issues when running certain 'guix home ...' commands that operate on generations while using 'guix-home-service. The "correct" behavior may not always be obvious either. For example: 1. 'guix-home-service' reactivates the same home environment every time the service is launched. If generations are created, how should that be reflected if the user has a home environment activated by 'guix-home-service' (generation A), runs 'guix home reconfigure' (generation B), and reboots? Consider it a silent roll back to A? Should B be marked a garbage collection candidate? Or should generation C be created? 2. Users may try 'guix home roll-back' or 'switch-generations', thinking the change is persistent. Should this be transient? Or should the change be made persistent somehow? (I'm strongly in favor of "transient", but I figured I'd raise the point.) I think this approach is best: 1. Create a new home generation when 'guix system reconfigure' and 'guix-home-service' are used. 2. Make 'guix home reconfigure', 'switch-generations', and 'roll-back' all warn that the changes are temporary. 3. Disable 'guix home delete-generations' on any system-created home generations. System-created home generations are deleted when the corresponding system generation is deleted. 4. Adjust 'guix home list-generations' and 'describe' to indicate if a home generation came from a particular system generation. As for how to accomplish this or how feasible it is? No clue. --=20 Take it easy, Richard Sent Making my computer weirder one commit at a time.