Added android-studio module

This commit is contained in:
alejandro-angulo 2024-09-17 17:32:27 -07:00
parent e7bf294b91
commit 36a5aa66e8
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 22 additions and 2 deletions

View file

@ -43,6 +43,7 @@
# overlay-package-namespace = "aa"; # overlay-package-namespace = "aa";
snowfall.namespace = "aa"; snowfall.namespace = "aa";
channels-config.android_sdk.accept_license = true;
channels-config.allowUnfree = true; channels-config.allowUnfree = true;
systems.modules.nixos = with inputs; [ systems.modules.nixos = with inputs; [

View 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];
};
}

View file

@ -72,8 +72,6 @@
system.monitoring.enable = true; system.monitoring.enable = true;
}; };
programs.adb.enable = true;
virtualisation = { virtualisation = {
libvirtd.enable = true; libvirtd.enable = true;