Files
nixos-config/hosts/common/features/udisks.nix
T
Miguel Palhas 78fdb8b3f3
CI / lint (push) Successful in 33s
CI / eval (push) Successful in 1m55s
feat(desktop): automount removable media
2026-09-11 16:19:24 +01:00

10 lines
375 B
Nix

{ ... }:
{
# Removable media. udisks2 provides the D-Bus API plus the polkit rules that
# let the logged-in user mount without root — which is what makes flashing a
# keyboard possible, since there's no keyboard to type a sudo password with.
services.udisks2.enable = true;
# gvfs is what lets Thunar list and unmount the device.
services.gvfs.enable = true;
}