mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: nixvim refactor
This commit is contained in:
23
modules/nixos/usecases/development/android.nix
Normal file
23
modules/nixos/usecases/development/android.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user