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"; + }; + }; +}