2022-11-21 17:40:18 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.programs.mdevctl;
|
|
|
|
in {
|
|
|
|
options.programs.mdevctl = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "Mediated Device Management";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [ mdevctl ];
|
|
|
|
|
|
|
|
environment.etc."mdevctl.d/scripts.d/notifiers/.keep".text = "";
|
|
|
|
environment.etc."mdevctl.d/scripts.d/callouts/.keep".text = "";
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|