587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
18 lines
408 B
Nix
18 lines
408 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.programs.mdevctl;
|
|
in {
|
|
options.programs.mdevctl = {
|
|
enable = mkEnableOption "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 = "";
|
|
|
|
};
|
|
}
|