help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open config.scm with sudo and gedit or emacs


From: Sergiu Ivanov
Subject: Re: open config.scm with sudo and gedit or emacs
Date: Sun, 12 Mar 2023 12:00:36 +0100
User-agent: mu4e 1.8.13; emacs 28.2

Hi SeerLite,

SeerLite <seerlite@disroot.org> [2023-03-12T00:42:42+0100]:
> On March 11, 2023 2:05:01 PM GMT-03:00, Sergiu Ivanov <sivanov@colimite.fr> 
> wrote:
>>Gottfried <gottfried@posteo.de> [2023-03-11T11:33:33+0100]:
>>>
>>> because of my limited knowledge
>>> when opening my config.scm file with sudo
>>> I can do it only with nano
>>
>>The strategy I personally prefer is to edit a file in my home directory
>>and then sudo cp to /etc/config.scm.
>>
>>More concretely, I store my system configuration in
>>~/.config/guix/system-config.scm. I edit it with Emacs, as I would edit
>>any other normal file. When I am done editing, I do what essentially is
>>
>>sudo cp ~/.config/guix/system-config.scm /etc/config.scm
>
> Why not use the configuration from ~/.config directly? Why copy at all? I do
>
>     sudo guix system reconfigure ~/.config/guix/system-config.scm

You are right, it's probably even better.

I prefer keeping my system config in /etc/config.scm because this is
what everyone seems to do, but that's probably a bad reason, supported
by unreliable data :D

-
Sergiu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]