services.udisks2.mountOnMedia

NixOS option

When enabled, instructs udisks2 to mount removable drives under /media/ directory, instead of the default, ACL-controlled /run/media/$USER/. Since /media/ is not mounted as tmpfs by default, it requires cleanup to get rid of stale mountpoints; enabling this option will take care of this at boot.

type: boolean
Default
false
declared in: nixos/modules/services/hardware/udisks2.nixView source on NixOS/nixpkgs →