mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
24 lines
384 B
Nix
24 lines
384 B
Nix
{
|
|
config,
|
|
username,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.usecases.development.android;
|
|
in
|
|
{
|
|
options.usecases.development.android = {
|
|
enable = mkEnableOption "Android develompent";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.adb.enable = true;
|
|
users.users.${username}.extraGroups = [ "adbusers" ];
|
|
networking.firewall.allowedTCPPorts = [ 5037 ];
|
|
};
|
|
}
|