at 23.11-pre 420 B view raw
1{ config, pkgs, lib, ... }: 2 3with lib; 4let 5 cfg = config.programs.mdevctl; 6in { 7 options.programs.mdevctl = { 8 enable = mkEnableOption (lib.mdDoc "Mediated Device Management"); 9 }; 10 11 config = mkIf cfg.enable { 12 environment.systemPackages = with pkgs; [ mdevctl ]; 13 14 environment.etc."mdevctl.d/scripts.d/notifiers/.keep".text = ""; 15 environment.etc."mdevctl.d/scripts.d/callouts/.keep".text = ""; 16 17 }; 18}