unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Joshua Branson <jbranso@dismail.de>
To: "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr>
Cc: Guix Help <help-guix@gnu.org>
Subject: Re: Guix System definition with a .emacs.d filled
Date: Fri, 16 Apr 2021 10:06:10 -0400	[thread overview]
Message-ID: <87a6py7299.fsf@dismail.de> (raw)
In-Reply-To: <c43f1b8fb8b00eacf72e20cc07e3d836ffb230bf.camel@korwin-zmijowski.fr> ("Jérémy Korwin-Zmijowski"'s message of "Fri, 16 Apr 2021 00:30:18 +0200")

Jérémy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr> 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érémy
>

--
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


  reply	other threads:[~2021-04-16 14:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15 22:30 Guix System definition with a .emacs.d filled Jérémy Korwin-Zmijowski
2021-04-16 14:06 ` Joshua Branson [this message]
2021-04-16 21:04   ` Jérémy Korwin-Zmijowski
2021-04-17 13:53     ` Joshua Branson
2021-04-16 22:16 ` Jelle Licht
2021-04-17  8:35   ` Jérémy Korwin-Zmijowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6py7299.fsf@dismail.de \
    --to=jbranso@dismail.de \
    --cc=help-guix@gnu.org \
    --cc=jeremy@korwin-zmijowski.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).