nixos-config/modules/dev/android.nix
Gabriel Arazas d01e597918 Restructured the project setup
I've also added a little module for version control systems now that I'm finding myself often packaging software.
2020-09-06 04:50:16 +08:00

27 lines
758 B
Nix
Executable File

# Android is the mobile version of Linux.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.dev.android = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.dev.android.enable {
my.packages = with pkgs; [
unstable.android-studio # The apartment for Android development.
unstable.dart # It's JavaScript except saner and slimmer.
unstable.flutter # It's Electron except saner and slimmer.
unstable.kotlin # It's Java except saner and slimmer.
];
# Enable Android Debug Bridge for some device debugging.
programs.adb.enable = true;
my.user.extraGroups = [ "adbusers" ];
};
}