android: Set ANDROID_HOME
This commit is contained in:
parent
06e334c973
commit
3ad54e380d
@ -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;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
./programs/bluray
|
./programs/bluray
|
||||||
./programs/direnv
|
./programs/direnv
|
||||||
./programs/obs
|
./programs/obs
|
||||||
|
./programs/android
|
||||||
|
|
||||||
# Services
|
# Services
|
||||||
./services/kanshi
|
./services/kanshi
|
||||||
|
15
modules/programs/android/default.nix
Normal file
15
modules/programs/android/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user