Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
17 lines
406 B
Nix
17 lines
406 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
cfg = config.programs.mdevctl;
|
|
in {
|
|
options.programs.mdevctl = {
|
|
enable = lib.mkEnableOption "Mediated Device Management";
|
|
};
|
|
|
|
config = lib.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 = "";
|
|
|
|
};
|
|
}
|