blob: 4055dbb1a816c5d91cc4915836f9c04a50c11161 (
plain) (
tree)
|
|
{
lib,
config,
...
}: let
cfg = config.soispha.adb;
in {
options.soispha.adb = {
enable = lib.mkEnableOption "Android adb bridge";
user = lib.mkOption {
type = lib.types.str;
example = "soispha";
default = "soispha";
description = "Username to grant access to adb bridge";
};
};
config = lib.mkIf cfg.enable {
programs.adb.enable = true;
users.users."${cfg.user}".extraGroups = ["adbusers"];
};
}
|