19 lines
322 B
Nix
19 lines
322 B
Nix
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.custom.usbAutoMount;
|
||
|
in
|
||
|
{
|
||
|
options.custom.usbAutoMount.enable = lib.mkOption {
|
||
|
type = lib.types.bool;
|
||
|
default = false;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services = {
|
||
|
devmon.enable = true;
|
||
|
gvfs.enable = true;
|
||
|
udisks2.enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|