nixpkgs/nixos/modules/programs/mdevctl.nix

25 lines
459 B
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
}:
2022-11-07 09:40:54 +01:00
let
cfg = config.programs.mdevctl;
in
{
2022-11-07 09:40:54 +01:00
options.programs.mdevctl = {
enable = lib.mkEnableOption "Mediated Device Management";
2022-11-07 09:40:54 +01:00
};
config = lib.mkIf cfg.enable {
2022-11-07 09:40:54 +01:00
environment.systemPackages = with pkgs; [ mdevctl ];
2025-02-18 15:02:34 +01:00
environment.etc."mdevctl.d/.keep".text = "";
environment.etc."mdevctl/scripts.d/notifiers/.keep".text = "";
environment.etc."mdevctl/scripts.d/callouts/.keep".text = "";
2022-11-07 09:40:54 +01:00
};
}