nixpkgs/nixos/modules/programs/mdevctl.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
420 B
Nix
Raw Normal View History

2022-11-07 08:40:54 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.programs.mdevctl;
in {
options.programs.mdevctl = {
enable = mkEnableOption (lib.mdDoc "Mediated Device Management");
};
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 = "";
};
}