mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
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 = "";
|
|
|
|
};
|
|
}
|