this is what i have so far:
(use-modules (shepherd support)
(gnu services)
(gn services pluto))
(register-services
(service pluto-service-type
(pluto-configuration
(port 9876))))
(action 'shepherd 'daemonize)
(for-each start '(pluto-service))
with this profile:
(specifications->manifest
'(
"julia"
"julia-pluto"
"julia-plutoui"
"julia-visuals"
))
to be invoked with:
guix shell -m ~/.config/guix/manifests/julia-pluto.scm shepherd -c ~/.config/shepherd/julia-pluto.scm
There are a few problems:
- the service expects a user/group named julia, which i may end up creating (esp. since it looks hard coded)
- i’m not sure that the shepherd script will have everything it needs with the profile.
has anyone done anything like this before? i’m looking at the RDE repo to find out how it instantiates home-generic-services`, but so far no dice.
what i would like to move to is a directory with a julia project that has an `.envrc` set up, then invoke shepherd there in the foreground.