01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
18 lines
420 B
Nix
18 lines
420 B
Nix
{ 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 = "";
|
|
|
|
};
|
|
}
|