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

2025-04-04 Thread Oleander via
Hi,
I'm trying to write a module with this list of services:

(define bar
(list
(service foo1-service-type)
(service foo2-service-type)))

How do I add the "bar" variable into the "(services..." declaration which 
already contains a list of services?

I've tried without success:

(services
(append
(list ...)
bar
(modify-services %base-services...

Thanks in advance!

Re: Gnome "oh no something has gone wrong..."

2025-04-04 Thread Matteo Valsasina
On sab, mar 15, 2025 at 02:13  sebastien  wrote:
> Hi Christophe,
>
> Actually i have the same problem after update guix pull & guix reconfigure to 
> the last gnome version. 
>
>
> Looking to /var/log/message in real time using tail -f
> /var/log/messages, i found there is an ugly segfault after more or
> less 1 minute in one of gds service
> (/gnu/store/qmjsxby7knqmy4h0rr9ahjm6713f150n-gnome-settings-daemon-47.2/libexec/gsd-usb-protection)
> launched by gnome at startup : gsd-usb-protection .gsd-ubs-protect ,
> org.gnome.settingsDaemon.USBProtection.desktop ... This service is not
> accessible from dconf editor of gsettings

Hi all,
same problems here.
Still looking for something that work.

On xfce now

Best regards
Matteo



Re: scanning in GNU Guix

2025-04-04 Thread gfp

Hi Lukas,

thanks very much for looking into that.

Please inform me, when we are going to get there.

It is always a nuisance, when I need a scan,
I have to start GNUinOS, which I have installed approx. 2 years ago,
scan something and then to restart my laptop with Guix to continue working.

I tried to install Trisquel in a VM,
but I am not able to change the Samba configuration
so that it works
that I can scann in Trisquel and save the scan in my Guix home folder.

At the moment there is only one solution not to restart my laptop:
to scan in Trisquel in adding my printer and a usb device, save my scan 
on the usb device, after scanning remove my printer and the usb device

so that I can use the usb device in Guix and start Trisquel next time.

If I don´t remove my printer and the usb device every time after using 
it, I can´t start Trisquel in the VM.
Then I need to have the printer and the usb device connected to my 
laptop which is not a good option.

I am wondering why it works that way.

Thanks

Gottfried


Am 04.04.25 um 00:24 schrieb Lukas Gradl:


Hello Gottfried,

gfp  writes:


I had the same issue with my HP printer.  Am I guessing correctly that
your printer is connected through the network, not USB?


My printer is connected with USB to my laptop.

Is than all you have written valid for me also?


The USB case is probably different.  For testing, I connected my printer
via USB and experimented a bit with it.  With `lsusb' I can see the
printer, but the hp-setup utility can not find the printer at all, even
if I put the Bus and Device number into hp-setup manually.  My guess is
there is a problem with the USB support in our hplip package.

My understanding (but i may be wrong) is that the HP drivers from the
hplip package are needed to be able to both print and scan - to only get
printing to work, a generic driver may suffice.  I'll try to look into
the USB support of our hplip package, if/when there is time.

I agree with you that printing and scanning should just work -
we are not there yet but we will get there eventually 🙂

Best,
Lukas




OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: scanning in GNU Guix

2025-04-04 Thread Lukas Gradl


Hello Gottfried,

gfp  writes:

> I can print in Guix SD with my very old printer
> HP Officejet J4580 All-in-One
> but I can´t _scan_.

I had the same issue with my HP printer.  Am I guessing correctly that
your printer is connected through the network, not USB?

Until very recently, our hplip package (containing the printer drivers
for HP devices) did not have network support.  This means that you could
not use the HP drivers with a network connected printer.  The reason you
can print in spite of that is that you are likely using IPP to
communicate with the printer (at least this was the case for me).  This
does however not support scanning.

To scan and print, you need to use the HP drivers.  A fix to enable the
network support of hplip was merged two days ago (bug#76583).  So if you
pull and then reconfigure your system, both scanning and printing should
work.

Make sure that your CUPS service is actually using hplip instead of
hplip-minimal (the latter does not have network support).  In my system
configuration file, I do this:

 (service cups-service-type
  (cups-configuration
   (web-interface? #t)
   (auto-purge-jobs? #t)
   (default-paper-size "A4")
   (extensions
(list cups-filters
  epson-inkjet-printer-escpr
  hplip;; <- hplip, not hplip-minimal

You will likely also need to add the printer to CUPS again, because you
want to use the HP driver, not IPP.  You can do that conveniently using
the hp-setup utility that comes with hplip.  Run it with

guix shell hplip -- hp-setup

and select "Network/Ethernet/Wireless network ..." (in the bottom left
of the window it should say "Step 1 of 3").  If you click on "Next" it
will try to find your printer automatically.  If this does not work, go
back to Step 1 of 3.  Under "Show Advanced Options" you can enter the IP
address of your printer manually.

Once hp-setup has successfully configured your printer, you should be
able to print and scan (the scanner should be found automatically by
e.g. Simple-Scan).


> So, what is the difference between
> GNU Guix and GNU Trisquel
> that I can´t scan in GNU Guix?

I believe the difference is only the network support in the hplip
package.  With this now fixed, the functionality should be equivalent.

Hope this helps!

Best,
Lukas