feat(desktop): automount removable media
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
{
|
||||
imports = [
|
||||
./darkman.nix
|
||||
./udiskie.nix
|
||||
# mpv is installed by programs.mpv there, not as a bare package here.
|
||||
../mpv.nix
|
||||
];
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
# Mounts removable media on insert. Needed on top of host-side udisks2:
|
||||
# udisks2 only exposes the API, and Thunar is installed as a bare package
|
||||
# here (no thunar-volman), so nothing would otherwise mount anything.
|
||||
services.udiskie = {
|
||||
enable = true;
|
||||
automount = true;
|
||||
notify = true;
|
||||
# No systray dependency — unmount from Thunar or `udisksctl unmount`.
|
||||
tray = "never";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user