parent
93a27dbe9f
commit
aacf9235d8
@ -0,0 +1,21 @@ |
||||
{ config, pkgs, lib, ... }: |
||||
|
||||
with lib; |
||||
|
||||
let |
||||
cfg = config.programs.usbtop; |
||||
in { |
||||
options = { |
||||
programs.usbtop.enable = mkEnableOption "usbtop and required kernel module"; |
||||
}; |
||||
|
||||
config = mkIf cfg.enable { |
||||
environment.systemPackages = with pkgs; [ |
||||
usbtop |
||||
]; |
||||
|
||||
boot.kernelModules = [ |
||||
"usbmon" |
||||
]; |
||||
}; |
||||
} |
Loading…
Reference in new issue