[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix system reconfigure /etc/config.scm or my-config.scm
From: |
John Soo |
Subject: |
Re: guix system reconfigure /etc/config.scm or my-config.scm |
Date: |
Wed, 8 May 2019 12:16:55 -0700 |
Hi there,
I do exactly what you said:
$ emacs /path/to/my/config.scm
$ sudo suix system reconfigure /path/to/my/config.scm
No need to keep it in /etc.
Hope that helps,
John
> On May 8, 2019, at 11:54 AM, sirgazil <address@hidden> wrote:
>
> Hi,
>
> I'm reading the Guix manual, and I'm confused about the recommended way to
> reconfigure the system.
>
> The workaround added recently to the "Graphical Installation" section
> suggests that in a freshly installed system you can:¹
>
> $ sudo emacs /etc/config.scm
> Modify the file to your liking
> $ guix pull && sudo guix system reconfigure /etc/config.scm
>
> But the "System Configuration" section seems to recommend against touching
> files in "/etc". The "Instantiating the System" subsection talks about
> running ²
>
> $ guix system reconfigure my-system-config.scm
>
> This subsection also reads:
>
> The normal way to change the system configuration is by updating this
> file and re-running ‘guix system reconfigure’. One should never have to
> touch files in ‘/etc’ or to run commands that modify the system state
> such as ‘useradd’ or ‘grub-install’. In fact, you must avoid that since
> that would not only void your warranty but also prevent you from rolling
> back to previous versions of your system, should you ever need to.
>
> So, should one do the following instead?
>
> $ emacs ~/path/to/my-config.scm
> Modify the file to your liking
> $ guix pull && sudo guix system reconfigure ~/path/to/my-config.scm
>
>
>
> Footnotes:
>
> 1.
> https://www.gnu.org/software/guix/manual/en/html_node/Guided-Graphical-Installation.html#Guided-Graphical-Installation
> 2.
> https://www.gnu.org/software/guix/manual/en/html_node/Using-the-Configuration-System.html#Instantiating-the-System
>
>
> ---
> https://sirgazil.bitbucket.io/
>
>
>
>
>