bug#65510: Errors trying to use home-dicod-service-type and home-syncthing-service-type

2023-08-29 Thread Ludovic Courtès
Hi,

Morgan Smith  skribis:

> (use-modules (gnu services)
>  (gnu home services dict)
>  (gnu home services syncthing)
>  (gnu home services mcron))
>
> (home-environment
>  (services
>   (list
>;; guix home: error: no target of type 'system' for service 'profile'
>(service home-dicod-service-type)
>;; guix home: error: no target of type 'system' for service 'profile'
>(service home-syncthing-service-type)

Fixed in cf6abf50dbbbd95fef465ab4bb3b608843ac47e1.

It’s not fully satisfactory though so this will need more thought.

Thanks,
Ludo’.





bug#65510: Errors trying to use home-dicod-service-type and home-syncthing-service-type

2023-08-29 Thread Ludovic Courtès
Hi Morgan,

Morgan Smith  skribis:

> (use-modules (gnu services)
>  (gnu home services dict)
>  (gnu home services syncthing)
>  (gnu home services mcron))
>
> (home-environment
>  (services
>   (list
>;; guix home: error: no target of type 'system' for service 'profile'
>(service home-dicod-service-type)
>;; guix home: error: no target of type 'system' for service 'profile'
>(service home-syncthing-service-type)

Oops.  The workaround is to explicitly add (gnu home services shepherd)
to the list of imported modules.

I’ll look for a proper fix.

Thanks for reporting the issue!

Ludo’.





bug#65510: Errors trying to use home-dicod-service-type and home-syncthing-service-type

2023-08-24 Thread Morgan Smith
Hello guix!

Thank you Ludovic for adding a way to map system services to home
services!  This is very exciting.  However, I can't seem to use some of
those services.

Take a look at this minimal example home configuration:

--8<---cut here---start->8---
(use-modules (gnu services)
 (gnu home services dict)
 (gnu home services syncthing)
 (gnu home services mcron))

(home-environment
 (services
  (list
   ;; guix home: error: no target of type 'system' for service 'profile'
   (service home-dicod-service-type)
   ;; guix home: error: no target of type 'system' for service 'profile'
   (service home-syncthing-service-type)
   ;; works great!
   (service home-mcron-service-type
--8<---cut here---end--->8---

Am I doing something wrong?  Both the dicod and syncthing services give
me an error when running "guix home build".  The mcron service works
fine though even though it is built using the same "for-home" stuff.

I'm not that comfortable with debugging services and I don't really know
where to start.

I used the "guix repl" to print out "(service home-dicod-service-type)"
and got this:

--8<---cut here---start->8---
$1 = #< type: # value: 
#< dico: # interfaces: ("localhost") handlers: () databases: 
(#< name: "gcide" handler: "gcide" complex?: #f options: 
(# #) (invoke 
# "/libexec/idxgcide">:out> # 
"/share/gcide">:out> #)) gnu/services/dict.scm:83:19 
7f16dc1101b0> guile: #f options: (#:local-build? #t)>:out>) 
gnu/services/dict.scm:95:18 7f16dc110120>)>) home-service?: #t>>
--8<---cut here---end--->8---