android: Set ANDROID_HOME

This commit is contained in:
PapaTutuWawa 2022-11-12 21:59:36 +01:00
parent 06e334c973
commit 3ad54e380d
3 changed files with 17 additions and 0 deletions

View File

@ -87,6 +87,7 @@
}; };
gaming.enable = true; gaming.enable = true;
obs.enable = true; obs.enable = true;
android.enable = true;
}; };
services = { services = {
gamemode.enable = true; gamemode.enable = true;

View File

@ -25,6 +25,7 @@
./programs/bluray ./programs/bluray
./programs/direnv ./programs/direnv
./programs/obs ./programs/obs
./programs/android
# Services # Services
./services/kanshi ./services/kanshi

View File

@ -0,0 +1,15 @@
{ pkgs, lib, config, ... }:
let
cfg = config.ptw.programs.android;
in {
options.ptw.programs.android = {
enable = lib.mkEnableOption "Enable Android development options";
};
config = lib.mkIf cfg.enable {
environment.variables = {
"ANDROID_HOME" = "/home/alexander/Development/Android/Sdk";
};
};
}