depot/third_party/nixpkgs/nixos/modules/programs/mdevctl.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

24 lines
459 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/.keep".text = "";
environment.etc."mdevctl/scripts.d/notifiers/.keep".text = "";
environment.etc."mdevctl/scripts.d/callouts/.keep".text = "";
};
}