1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 02:00:41 +03:00
nixpkgs/nixos/modules/programs/mdevctl.nix

19 lines
408 B
Nix
Raw Normal View History

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