From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Help with auto-mounting a specific file-system. Date: Mon, 20 Apr 2020 11:52:48 +0200 Message-ID: <87zhb6jxfz.fsf@ambrevar.xyz> References: <87k12ald2w.fsf@ambrevar.xyz> <87tv1eldqc.fsf@ambrevar.xyz> <2638304b56ed648dd780625b49e3bb76@disroot.org> <560043a393f4298ad1f1d263535f82e8@disroot.org> <1e1aaec3b2fd14c13fe57d03d4940bc1@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48560 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQT6r-0006A7-Uv for help-guix@gnu.org; Mon, 20 Apr 2020 05:53:02 -0400 Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQT6p-0005hh-LL for help-guix@gnu.org; Mon, 20 Apr 2020 05:53:01 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:37923) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQT6p-0005dn-0i for help-guix@gnu.org; Mon, 20 Apr 2020 05:52:59 -0400 In-Reply-To: <1e1aaec3b2fd14c13fe57d03d4940bc1@disroot.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Raghav Gururajan , help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Raghav Gururajan" writes: > Okay, no problem. I can just do git operations by 'cd'ing to /media/foo/b= ar, 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: =2D-8<---------------cut here---------------start------------->8--- (define auto-mount (make #:provides '(auto-mount) #:start (make-system-constructor "udiskie &") #:stop (make-system-destructor "pkill udiskie") #:respawn? #t)) =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6dcPAACgkQm9z0l6S7 zH9ScwgArfa/Xb2mqllRWy30kOfEAG6Hi4PdZdtkXZDFmDCrBBGlhdA6uCuuxXXN u85Kb3l2U3YlBKMa0eAyDBhbLQkxQBXRgsWJKquem/kmDWkSeqAlvqUWsU6gKMKc n13UksOYINvhd/JYh2C6v6A2fNZ/GeS+1S3Ofj3gh7TXITH1z4fwz3Q3/MuTpa1S EAAiMb6SqjF4TTCEngjOcwx6Bn5ci/0gEiSrHGx1BiEVnFay8enUTPeWShKo2jVK 3nmbugtCF0GuFFpBKEosneTM9ZrfhvfG/1OKyHdu6UluMC4hztRdh7I6MttGRSYK ysqeyiT2MHO6dtSZZwTzpJRZAFF/xw== =HQTM -----END PGP SIGNATURE----- --=-=-=--