Hi.
Have you tried to configure and use an USB-connected printer?
In my old non-rde GUIX it was super easy: just installed the "hplip"
guix package for HP printers. So I tried these now with my rde system.
hplip's GUI opens ok but it can´t recognize any printer connected.
Don´t know what is going wrong.
Suspect that some kind of new printing service or feature could help.
Are you working on something like this?
Best regards.
Igor
On 2023-08-22 19:45, Igor Zolnerkevic wrote:
> Hi.> Have you tried to configure and use an USB-connected printer?> In my old non-rde GUIX it was super easy: just installed the "hplip"> guix package for HP printers. So I tried these now with my rde system.> hplip's GUI opens ok but it can´t recognize any printer connected.> Don´t know what is going wrong.> Suspect that some kind of new printing service or feature could help.> Are you working on something like this?
Probably, you had cups-service-type in your previous guix installation.
AFAIK, there is no feature for it in rde yet and nobody working on it
ATM, as a workaround you can just add a cups service using
feature-custom-services or any other way.
https://guix.gnu.org/manual/devel/en/guix.html#Printing-Services
CCed Nicolas, maybe he has it implemnted somewhere.
--
Best regards,
Andrew Tropin
Hello, Andrew,
> Probably, you had cups-service-type in your previous guix installation.
Yes, I did.
> ATM, as a workaround you can just add a cups service using> feature-custom-services or any other way.>> https://guix.gnu.org/manual/devel/en/guix.html#Printing-Services>
Now, following the GUIX manual, I defined in my rde home config this service:
(define add-cups-service
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters hplip)))))
then add "add-cups-service" to my feature-custom-services
"#:system-services" list. The config compiled nicely! Will try to
print something soon to verify if it works.
Best,
Igor
Not working yet :(
I suspect my printer/scanner is a model too old and so requires
sane-backends too:
https://guix.gnu.org/manual/devel/en/guix.html#index-sane_002dbackends
Don´t know how to adapt this to the rde config context.
On Wed, Aug 23, 2023 at 4:52 PM Igor Zolnerkevic <igorz@abismos.net> wrote:
>> Hello, Andrew,>> > Probably, you had cups-service-type in your previous guix installation.> Yes, I did.>> > ATM, as a workaround you can just add a cups service using> > feature-custom-services or any other way.> >> > https://guix.gnu.org/manual/devel/en/guix.html#Printing-Services> >> Now, following the GUIX manual, I defined in my rde home config this service:>> (define add-cups-service> (service cups-service-type> (cups-configuration> (web-interface? #t)> (extensions> (list cups-filters hplip)))))>> then add "add-cups-service" to my feature-custom-services> "#:system-services" list. The config compiled nicely! Will try to> print something soon to verify if it works.>> Best,> Igor
Now I see, the sane-service-type is listed in the variable
%rde-desktop-system-services, defined inside the module (rde features
base). Therefore I have to substitute this variable with a modified
version of it according to the the Guix Manual, right?
On Wed, Aug 23, 2023 at 7:35 PM Igor Zolnerkevic <igorz@abismos.net> wrote:
>> Not working yet :(> I suspect my printer/scanner is a model too old and so requires> sane-backends too:>> https://guix.gnu.org/manual/devel/en/guix.html#index-sane_002dbackends> Don´t know how to adapt this to the rde config context.>>> On Wed, Aug 23, 2023 at 4:52 PM Igor Zolnerkevic <igorz@abismos.net> wrote:> >> > Hello, Andrew,> >> > > Probably, you had cups-service-type in your previous guix installation.> > Yes, I did.> >> > > ATM, as a workaround you can just add a cups service using> > > feature-custom-services or any other way.> > >> > > https://guix.gnu.org/manual/devel/en/guix.html#Printing-Services> > >> > Now, following the GUIX manual, I defined in my rde home config this service:> >> > (define add-cups-service> > (service cups-service-type> > (cups-configuration> > (web-interface? #t)> > (extensions> > (list cups-filters hplip)))))> >> > then add "add-cups-service" to my feature-custom-services> > "#:system-services" list. The config compiled nicely! Will try to> > print something soon to verify if it works.> >> > Best,> > Igor
On 2023-08-23 20:15, Igor Zolnerkevic wrote:
> Now I see, the sane-service-type is listed in the variable> %rde-desktop-system-services, defined inside the module (rde features> base). Therefore I have to substitute this variable with a modified> version of it according to the the Guix Manual, right?
This is a viable option.
Also, we can move it to separate feature for scanners and printers after
you finish configuring it, but IDK how to name it yet (feature-printing
or feature-cups or feature-mfp or something else?).
Let us know how it goes.
P.S. Please avoid top-posting https://man.sr.ht/lists.sr.ht/etiquette.md.
>>> On Wed, Aug 23, 2023 at 7:35 PM Igor Zolnerkevic <igorz@abismos.net> wrote:>>>> Not working yet :(>> I suspect my printer/scanner is a model too old and so requires>> sane-backends too:>>>> https://guix.gnu.org/manual/devel/en/guix.html#index-sane_002dbackends>> Don´t know how to adapt this to the rde config context.>>>>>> On Wed, Aug 23, 2023 at 4:52 PM Igor Zolnerkevic <igorz@abismos.net> wrote:>> >>> > Hello, Andrew,>> >>> > > Probably, you had cups-service-type in your previous guix installation.>> > Yes, I did.>> >>> > > ATM, as a workaround you can just add a cups service using>> > > feature-custom-services or any other way.>> > >>> > > https://guix.gnu.org/manual/devel/en/guix.html#Printing-Services>> > >>> > Now, following the GUIX manual, I defined in my rde home config this service:>> >>> > (define add-cups-service>> > (service cups-service-type>> > (cups-configuration>> > (web-interface? #t)>> > (extensions>> > (list cups-filters hplip)))))>> >>> > then add "add-cups-service" to my feature-custom-services>> > "#:system-services" list. The config compiled nicely! Will try to>> > print something soon to verify if it works.>> >>> > Best,>> > Igor
--
Best regards,
Andrew Tropin
> This is a viable option.>
It didn't work. Tried putting this on my features-list.scm file,
modified from the 0.3.0 release example config:
...
#:use-module (gnu services desktop)
#:use-module (gnu packages scanner)
...
(define %my-rde-desktop-system-services
(modify-services %rde-desktop-system-services
(sane-service-type _ => sane-backends)))
...
(define-public %base-features
(list
...
(feature-desktop-services
#:default-desktop-system-services %my-rde-desktop-system-services )
...))
Got this error message when compiling:
> make wintermute/home/reconfigure
RDE_TARGET=wintermute-home ./pre-inst-env target/profiles/guix/bin/guix home \
reconfigure ./src/abismos/configs.scm
ice-9/eval.scm:223:20: In procedure proc:
error: %all-features: unbound variable
hint: Did you forget a `use-modules' form?
> Also, we can move it to separate feature for scanners and printers after> you finish configuring it, but IDK how to name it yet (feature-printing> or feature-cups or feature-mfp or something else?).>
Vote for feature-printing :). It could be a place to add services for
laser jet printers, scanners, 3D printing etc. in the future.
> P.S. Please avoid top-posting https://man.sr.ht/lists.sr.ht/etiquette.md.
Sorry. Ok!
On 2023-08-24 15:48, Igor Zolnerkevic wrote:
>> This is a viable option.>>> It didn't work. Tried putting this on my features-list.scm file,> modified from the 0.3.0 release example config:> ...> #:use-module (gnu services desktop)> #:use-module (gnu packages scanner)> ...>> (define %my-rde-desktop-system-services> (modify-services %rde-desktop-system-services> (sane-service-type _ => sane-backends)))> ...>> (define-public %base-features> (list> ...> (feature-desktop-services> #:default-desktop-system-services %my-rde-desktop-system-services )> ...))>
The overall code looks correct, the problem somewhere in the details.
You can try to fire up a repl, connect to it with geiser-connect and
evaluate modules one by one to get more preciese error.
> Got this error message when compiling:>>> make wintermute/home/reconfigure> RDE_TARGET=wintermute-home ./pre-inst-env target/profiles/guix/bin/guix home \> reconfigure ./src/abismos/configs.scm> ice-9/eval.scm:223:20: In procedure proc:> error: %all-features: unbound variable> hint: Did you forget a `use-modules' form?>>> Also, we can move it to separate feature for scanners and printers after>> you finish configuring it, but IDK how to name it yet (feature-printing>> or feature-cups or feature-mfp or something else?).>>> Vote for feature-printing :). It could be a place to add services for> laser jet printers, scanners, 3D printing etc. in the future.
The hardest part about this feature is to decide on the
name/responsibility and find a proper file to put it in :)
Let's say we call it feature-printing, is scanning will be a part of
printing feature?
>> P.S. Please avoid top-posting https://man.sr.ht/lists.sr.ht/etiquette.md.> Sorry. Ok!
Well done 👍
--
Best regards,
Andrew Tropin