[Nix-dev] Automount for usb thumb drives / other external drives
Daniel Hlynskyi
abcz2.uprola at gmail.com
Sun Jul 19 07:31:25 CEST 2015
What is the nixos way to add udiskie as user daemon? Currently I run in
~/.bashrc and xmonad.hs
ps aux | grep -q '[u]diskie' || udiskie &
disown %1
2015-07-16 14:27 GMT+00:00 Benno Fünfstück <benno.fuenfstueck at gmail.com>:
> There is an udisk auto mounter in nixpkgs though: udiskie
>
> Guillaume Maudoux (Layus) <layus.on at gmail.com> schrieb am Do., 16. Juli
> 2015 15:04:
>
>> Hi,
>>
>> Le 16/07/15 13:58, Eelco Dolstra a écrit :
>> > Hi,
>> >
>> > On 15/07/15 23:22, Paul Koerbitz wrote:
>> >
>> >> I would like to automatically mount usb sticks that I plug into my
>> >> laptop. I haven't been able to figure out how to do this in NixOS,
>> >> what's the easiest option?
>> > The standard mechanism used for dealing with removable media is udisks,
>> used by
>> > desktop environments like KDE and Xfce to allow non-root users to mount
>> disks.
>> > It can also be used from the command-line, e.g.
>> >
>> > $ udisksctl mount -b /dev/sdb1
>> > Mounted /dev/sdb1 at /run/media/eelco/USBSTICK.
>> >
>> > Udisks doesn't mount disks automatically on insertion, but this could
>> be done by
>> > having a script that listens for the D-Bus messages sent by udisks and
>> then asks
>> > udisks to do the mount. In fact, there already is a package that does
>> this:
>> >
>> > https://github.com/fernandotcl/udisks-glue
>> >
>> > but it's not in Nixpkgs yet.
>> >
>> There is also the excellent udevil[1] tool that comes with devmon,
>> a monitoring and automonting daemon.
>> But udevil is not yet in nixpkgs either.
>>
>> [1] http://ignorantguru.github.io/udevil/
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150719/919497b1/attachment.html
More information about the nix-dev
mailing list