From 4016dd6632ef5c34fd0dbd09565d8fe907bf5513 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Fri, 5 Jan 2024 18:00:51 +0800 Subject: [PATCH] feat(adb): add android tools --- faucet/android/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 faucet/android/default.nix diff --git a/faucet/android/default.nix b/faucet/android/default.nix new file mode 100644 index 00000000..a9d46612 --- /dev/null +++ b/faucet/android/default.nix @@ -0,0 +1,17 @@ +{ 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" ]; + }; +}