dotfiles/modules/nixos/programs/android-studio/default.nix

22 lines
393 B
Nix
Raw Normal View History

2024-09-18 00:32:27 +00:00
{
config,
pkgs,
lib,
namespace,
...
}: let
cfg = config.${namespace}.programs.android-studio;
in {
options.${namespace}.programs.android-studio = {
enable = lib.mkEnableOption "Android Studio";
};
config = lib.mkIf cfg.enable {
${namespace}.user.extraGroups = ["kvm"];
programs.adb.enable = true;
environment.systemPackages = [pkgs.android-studio];
};
}