2024-05-18 21:20:50 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.programs.udiskie;
|
2024-05-18 21:20:50 +02:00
|
|
|
in {
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.programs.udiskie = {
|
|
|
|
enable = lib.mkEnableOption "auto media mounting";
|
2024-05-18 21:20:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.udiskie = {
|
|
|
|
enable = true;
|
|
|
|
automount = true;
|
|
|
|
notify = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|