1
1
Fork 0
nixos/options/custom/programs/adb.nix

18 lines
378 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.custom.programs.adb;
in
{
options.custom.programs.adb.enable = mkOption { default = false; };
config = mkIf cfg.enable {
# https://wiki.nixos.org/wiki/Android
# https://developer.android.com/tools/adb
programs.adb.enable = true;
users.users.${config.custom.username}.extraGroups = [ "adbusers" ];
};
}