aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/usb/default.nix
blob: 0f0e191153a4253e1087a35ab8b87d0bf737e7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Tools for mounting and unmounting USB and MTP devices
{
  config,
  lib,
  pkgs,
  ...
}:
{
  options.file-management.usb = {
    enable = lib.mkEnableOption "Enables USB device mounting tools.";
  };

  config = lib.mkIf config.file-management.usb.enable {
    # Tools for manual mounting of usb devices
    home.packages = with pkgs; [
      udisks
      # For MTP devices (like phones)
      simple-mtpfs
    ];
  };
}