Added android-studio module
This commit is contained in:
parent
e7bf294b91
commit
36a5aa66e8
3 changed files with 22 additions and 2 deletions
21
modules/nixos/programs/android-studio/default.nix
Normal file
21
modules/nixos/programs/android-studio/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
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];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue