Hi Irfan,

Yes, you and seven other kind people gently indicated how careless I was to not use ' guix system reconfigure /etc/config.scm'  .  I also understand that config.scm can be anywhere, but there should only be one of these which, at the very least defines a user list; I think.

Perhaps a different type of config.scm may be necessary to encapsulate a 'reproducible environment of builds, but I can't yet fathom if said reproducible builds environment' can also define itself for a separate set of users at the same IP #.

So until I learn more, I can only say that I believe it's best to leave config.scm in /etc/ until I learn more.

Thanks also your reply,
Peri



On 2026-04-07 10:49, Irfan S wrote:
Hi Peri,

Peri Didaskalou<[email protected]> writes:

As per the manual, I carefully edited the new user into /etc/config.scm via
sudo emacs /etc/config.scm
The config file need not be in /etc, it can be anywhere, preferably in a 
user-writable directory under /home so that you need not sudo in order to edit 
it.

After saving the file and subsequently rebooting, I logged in as myself
Is it possible you missed the reconfigure step? After any change to the config 
file that defines your system, you must run the command ‘sudo -E guix system 
reconfigure /path/to/config-file.scm’ in order that guix build a new generation 
of the system with the changes you made (the -E flag to sudo preserves the 
calling user’s environment, which uses the guix version pulled by them; it is 
not strictly necessary. And otherwise sudo is generally not needed for guix 
commands.). The same command must be run to actually update the system 
generation after running ’guix pull’, just as you might have done when 
installing guix system. The manual mentions this in section 3.7.

Cheers,
Irfan

Reply via email to