nixos/faucet/android/default.nix

18 lines
311 B
Nix
Raw Normal View History

2024-01-05 18:00:51 +08:00
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.faucet.android;
in {
options.faucet.android = {
enable = mkEnableOption "android tools";
};
config = mkIf cfg.enable {
programs.adb.enable = true;
# allow device access by admin users
users.adminGroups = [ "adbusers" ];
};
}