From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IN8IDOeZeWCuGAEAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 16:06:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KIHwBueZeWCaBAAAB5/wlQ (envelope-from ) for ; Fri, 16 Apr 2021 14:06:31 +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 94252194DD for ; Fri, 16 Apr 2021 16:06:30 +0200 (CEST) Received: from localhost ([::1]:47044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXP77-0006yp-PA for larch@yhetil.org; Fri, 16 Apr 2021 10:06:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXP6w-0006yQ-IB for help-guix@gnu.org; Fri, 16 Apr 2021 10:06:18 -0400 Received: from mx1.dismail.de ([78.46.223.134]:30614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXP6u-0002r8-Bj for help-guix@gnu.org; Fri, 16 Apr 2021 10:06:18 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 5e26f26d; Fri, 16 Apr 2021 16:06:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=20190914; bh=4g4eY/Yj I2dyLjsIXAfzNyCfx3fNOr4ACCFv1QPEBcs=; b=iBFHj9opyH+iHEin+Mip9NOq KmrXBSrT8OcpWdUwASo/h2s/53+dZLgPrw5U5TnkudcWxeURKa9KQw1QQcX3f8dh QuDEeR4A6kgLlnYJcpRwt908sqphJdqVJDa95MwYv/5hcYz8+QsdhvLppeXsJjBz I2Od51a9ZPdqy2yNJk+ht8WpTVU/gp41isIvffdd4yufpMMOQ3OGbd1aGiEY22mf joiaVdzkWxtFcEeG9WhwsXOeQ6tZ2jAcr+L7X3TLi3v+qAeRUMzfp/FEG3sQOEls 91ofH0rAJk7PmM2yJSDDDUl/n5+yvUG0UFmidArlutq42zePdktA3C1R1/+SVg== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 1db64ffa; Fri, 16 Apr 2021 16:06:13 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 94382213; Fri, 16 Apr 2021 16:06:13 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id fd36fe3b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 16 Apr 2021 16:06:12 +0200 (CEST) From: Joshua Branson To: =?utf-8?B?SsOpcsOpbXk=?= Korwin-Zmijowski Cc: Guix Help Subject: Re: Guix System definition with a .emacs.d filled References: Mail-Followup-To: =?utf-8?B?SsOpcsOpbXk=?= Korwin-Zmijowski , Guix Help Date: Fri, 16 Apr 2021 10:06:10 -0400 In-Reply-To: (=?utf-8?B?IkrDqXLDqW15?= Korwin-Zmijowski"'s message of "Fri, 16 Apr 2021 00:30:18 +0200") Message-ID: <87a6py7299.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618581990; 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=myfH+B5wMa+ahq8cKOkHVVuvfmzrvl4ArtncEDDYpRc=; b=IgX7jy7bcOblI+JlaAsz9sUUNDtPfyMWqQD6hl2W/277DLaruSvbgVE0edcHr4UIly5eg3 YylrYzI+Vfx2KGY6j7orjI5c+cCv2t8G1+KBMadryU7UiquZolveZNBro41fBeBOguiKSp qWLjVwlxpngb0DAbMRDLNazXfN4bEVQBDUA8QSx3/IzGRj6ZKxVpsIGJNVV2frmUENWKB+ p+ZyXBcct6S2G5t0D29Z4uRoisTw6mftEkqArn44mbvEE0Hl4eluOPuNknQItPWO/le6fZ qvosdGZOJd6MeSrgGmxK9p9AhWYfKBHWwY8Vww7PHttEK/hhqj/m9zej7x4lOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618581990; a=rsa-sha256; cv=none; b=oXHFQAy50rQmwrLVPf2Nn1pEm3qbDTMw/fLsYnufpP8oIif3+qi1BtgTXYuv1f42PnT5Bf ce1v2HNBtq20fU7gU1Y5PUekXx7LzT5CEPL5i0aky9rKgyOSIYji2iO7HQH1ON5YkJgmhf R7Q+x5QEE2w0v6RdIqf4SFCwjzt2WtaxstX1GR94/Eq1CxRz3Ljt6w39NCxjqhuDu5i7P3 GksnGDLAjk/o+7zdRRI5hXJf4VpACoqQSH0JR6hEewUT8j0kpj2v3mKMfMeYoleZUELQD+ aQXl090hzUpLabR9Fsv2SJ2yohAMsejio1FW/fbZ1SOSFpWSptck6q1TI8cBNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=iBFHj9op; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=iBFHj9op; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 94252194DD X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: rUtISPT3UT3W J=C3=A9r=C3=A9my Korwin-Zmijowski writes: > Dear Guixters, > > Maybe I am asking too much to Guix haha. Maybe I don't. > > So. Here is what I intend to do : > > I want to write a Guix System definition that puts a .emacs.d directory > inside /root which is "usable". I don't feel the need to create a > regular user (I don't fear too much damages inside a disposable VM > context). > > So I tried two options : > > First, using an extra-special-file > > (extra-special-file "/root/.emacs.d" > (local-file "emacs.d" #:recursive? #t)) > > But the resulting .emacs.d is put into the store and is not writable. This is by design I believe. Any item in the store is NOT writable. Anything configured with guix is meant to be static, declarative, reproducible, NOT updated-able. :) Though it's possible that you are trying to do something that I just do not understand. This is most likely the case. You seem like a genius. :) > > Second, using skeletons > > (skeletons `((".emacs.d" ,(local-file "emacs.d" #:recursive? #t)))) > > But it seems it populate only regular users home directory. /root is > left empty. > > Perhaps the issue is the local-file. > Perhaps I could change the resulting extra-special-file permissions if > it does not mess up the store. > Or perhaps I could create a regular user. > > What would be "the way" ? haha If you want a write-able /root/.emacs.d/ I would recommend starting Emacs as root. That would do the job for you. :) > > Cheers, > J=C3=A9r=C3=A9my > -- 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