"Raghav Gururajan" <raghavgurura...@disroot.org> writes:

> Okay, no problem. I can just do git operations by 'cd'ing to /media/foo/bar, 
> which is mounted by udisks/udiskie.

To clarify, you can configure udisks to mount your drives somewhere else
like your home directory.

> Now, I am would like to modify udisks-service-type, to include an
> option like `enable-udiskie? boolean` in udisks-configuration. If it
> is #t, udiskie will run along with udisks service, on every
> start-up. Could you help me with a scheme code to achieve this?

Udiskie is a user service, so I don't think it makes sense to include it
in udisks-service-type.

But you can run shepherd as user.  I have this service:

--8<---------------cut here---------------start------------->8---
(define auto-mount
  (make <service>
    #:provides '(auto-mount)
    #:start (make-system-constructor "udiskie &")
    #:stop (make-system-destructor "pkill udiskie")
    #:respawn? #t))
--8<---------------cut here---------------end--------------->8---

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature

Reply via email to