Re: Guix pull with root user?

2025-04-09 Thread Roman Riabenko via
On Sun, 2025-03-23 at 10:04 -0700, Vagrant Cascadian wrote:
> On 2025-03-23, Rutherther wrote:
> > "Thomas Ieong"  writes:
> > > I have a guix system setup and I was wondering if it was
> > > necessary to guix
> > > pull from times to times with the root user.
> > > 
> > > My understanding was that guix pull with your regular user was
> > > enough with
> > > sudo guix system reconfigure 
> > 
> > Yes, exactly. sudo will use the guix from your user's path, so
> > root's
> > guix is not used for this.
> 
> I have noticed that "sudo guix system reconfigure ..." does work, but
> it
> needlessly populates /root/.cache/guix with duplicate cruft which
> over
> time gets to be sizeable. Using "sudo -E guix system reconfigure ..."
> does not seem to have this side-effect.

Similarly, "sudo -E guix pull" instead of "sudo -i guix pull" should
allow to reuse the guix checkout in the user's directory. Or would I
risk ending up with root-owned files in the home directory?

I wanted to test that with PureOS as the foreign distribution but some
configuration is apparently required there.

$ sudo du -sh
/root/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj
7apsnalwq/
1,4G
/root/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj
7apsnalwq/

$ LC_ALL=C sudo -E guix pull
guix pull: error: directory '/home/purism/.cache/guix' is not owned by
user root
hint: Backtrace:
In ice-9/boot-9.scm:
  1685:16 19 (raise-exception _ #:continuable? _)
In guix/ui.scm:
   873:16 18 (_ _)
   344:43 17 (display-hint "You should run this command as purism…" .
#)
In ice-9/boot-9.scm:
  1747:15 16 (with-exception-handler #
…)
  3474:28 15 (_)
  3327:17 14 (resolve-interface (guix build syscalls) #:select _ # _ …)
In ice-9/threads.scm:
390:8 13 (_ _)
In ice-9/boot-9.scm:
  3253:13 12 (_)
In ice-9/threads.scm:
390:8 11 (_ _)
In ice-9/boot-9.scm:
  3544:20 10 (_)
   2836:4  9 (save-module-excursion #)
  3564:26  8 (_)
In unknown file:
   7 (primitive-load-path "guix/build/syscalls" #)
In guix/build/syscalls.scm:
  2457:14  6 (_)
In ice-9/boot-9.scm:
  1747:15  5 (with-exception-handler #
…)
In guix/build/syscalls.scm:
   463:39  4 (_)
In ice-9/boot-9.scm:
  1747:15  3 (with-exception-handler #
…)
In unknown file:
   2 (dynamic-link "libutil")
In system/foreign-library.scm:
   190:25  1 (load-foreign-library _ #:extensions _ # _ #:search-path
…)
In unknown file:
   0 (dlopen "libutil.so" 1)

ERROR: In procedure dlopen:
In procedure dlopen: file "libutil.so", message "libutil.so: cannot
open shared object file: No such file or directory"

Roman


signature.asc
Description: This is a digitally signed message part


Guix usage and stability as daily driver

2025-04-09 Thread Matteo Valsasina
Hi Guix,
i am using guix system as (personal) daily driver since 1.4.
During the time i added services and packages.

I am so glad for the declarative and rolling system.
I learned lot from it and my knowledge of gnu and system administration is 
growing (still lot to learn).

This kind of system helped me adding lot of software like podman, docker, 
distrobox, and so many on

With lot of software a problem started to show up.
System is less "stable" (pass me the expression).
Sometimes i use software after 1 month to discover it's not working any more.
At this point i can usually not rollback for 2 main reasons:
- i don't know any more when something broke
- the configure that introduced the bug resolved one other

Tryed to force me to upgrade once a month to reduce the impact but this is not 
a good answer for the periods where i am experimenting in implementing new 
services or configuration.

Last month introduced home config which needed lots of reconfigure to figure 
out what i was looking for (still not the best sysadmin)

Am i missing some best practices?
Should i work more with pinned software?

I arrive from debian stable, putting lot of effort to change mindset.

Sometimes it feels too much time consuming (again for me not beeing that good)

Thanks a lot for any advice that can come from the community which i find 
really a good one.





Re: Idiomatic way to run Emacs 30.1?

2025-04-09 Thread Cayetano Santos

>Wed 09 Apr 2025 at 04:22, Aleksej via  wrote:

> Emacs 30.1 is available on "emacs-team" branch, so, the best way is probably 
> to wait until
> it's merged. You could also use package inferiors to add it, but I'm not sure 
> if that is a
> good idea.

As an alternative, one may set the "branch" of a given channel in the
channels.scm file, considering that this might include untested changes.

Best, is probably to wait until this branch merges in master.


signature.asc
Description: PGP signature


Re: Idiomatic way to run Emacs 30.1?

2025-04-09 Thread Cayetano Santos

>Tue 08 Apr 2025 at 22:47, Snikta  wrote:

> Hi,
>
> I want to run the latest stable version of Emacs, but I'm not sure how to 
> achieve this on
> Guix.

Out of curiosity, I just found this guix channel, which looks interesting
if you feel like living in the bleeding edge.

https://github.com/gs-101/emacs-master

C.


signature.asc
Description: PGP signature


Re: How to add a variable with a list of services into another list of services?

2025-04-09 Thread Oleander via
Hi Fernando!

I managed to fix the error thanks to Rutherther on irc. (keyboard-layout 
keyboard-layout) in my xorg config was the wrong part because a struct is 
expected in the field keyboard-layout, but I was giving it a procedure:

(service startx-command-service-type
(xorg-configuration
(keyboard-layout keyboard-layout)
(extra-config...

I moved it out of my OS config where the second keyboard-layout was referring 
to the operating-system's keyboard-layout.

Thanks!

 Original Message 
On Apr 9, 2025, 11:57, Fernando Martínez González wrote:

> Hi, Oleander! Would you mind sharing what error you have? Oleander via  
> writes: > I've tried without success: > > (services > (append > (list ...) > 
> bar > (modify-services %base-services... I don't think there is anything 
> wrong with what you are trying (guile-user)> (let ((a (list 3 4))) (append 
> (list 1 2) a)) (1 2 3 4) -- Fernando