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