From 3ad54e380d9aa3c543769c30577fccdfdb5bebae Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 12 Nov 2022 21:59:36 +0100 Subject: [PATCH] android: Set ANDROID_HOME --- hosts/miku.nix | 1 + modules/default.nix | 1 + modules/programs/android/default.nix | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 modules/programs/android/default.nix diff --git a/hosts/miku.nix b/hosts/miku.nix index 173c1fe..204a3bd 100644 --- a/hosts/miku.nix +++ b/hosts/miku.nix @@ -87,6 +87,7 @@ }; gaming.enable = true; obs.enable = true; + android.enable = true; }; services = { gamemode.enable = true; diff --git a/modules/default.nix b/modules/default.nix index f9ced26..a042298 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -25,6 +25,7 @@ ./programs/bluray ./programs/direnv ./programs/obs + ./programs/android # Services ./services/kanshi diff --git a/modules/programs/android/default.nix b/modules/programs/android/default.nix new file mode 100644 index 0000000..96d9624 --- /dev/null +++ b/modules/programs/android/default.nix @@ -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"; + }; + }; +}