aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/usb/default.nix
blob: b9b05d90c3ebd42400207b141efc2345dc712221 (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 = [
      pkgs.udisks
      # For MTP devices (like phones)
      pkgs.simple-mtpfs
    ];
  };
}