2024-06-30 03:56:48 +03:00
|
|
|
# This is a common user configuration.
|
|
|
|
{ const
|
|
|
|
, pkgs
|
|
|
|
, self
|
|
|
|
, config
|
|
|
|
, lib
|
|
|
|
, inputs
|
|
|
|
, pkgsStable
|
|
|
|
, pkgsMaster
|
|
|
|
, __findFile
|
|
|
|
, ... } @args: with lib; let
|
|
|
|
cfg = config.home.android;
|
|
|
|
stylix = import <config/Stylix.nix> args;
|
|
|
|
android = import ./android args;
|
|
|
|
package = import <package> args;
|
|
|
|
# homePath = "/data/data/com.termux.nix/files/home";
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
home.android = {
|
|
|
|
enable = mkEnableOption "Android HM config.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
time.timeZone = const.timeZone;
|
|
|
|
environment.packages = package.core;
|
|
|
|
home-manager.config = stylix // {
|
|
|
|
imports = [ inputs.stylix.homeManagerModules.stylix ];
|
|
|
|
home = {
|
|
|
|
stateVersion = const.droidStateVersion;
|
|
|
|
sessionVariables = import ./variable args;
|
|
|
|
file = (import ./config args) // {
|
|
|
|
".termux/_font.ttf".source = android.font;
|
|
|
|
".termux/_colors.properties".text = android.colors;
|
|
|
|
};
|
|
|
|
};
|
2024-07-01 08:01:01 +03:00
|
|
|
# ISSUE: Firefox causes inf rec for some reason.
|
|
|
|
# programs = import ./program args;
|
|
|
|
programs = (import ./program args) // { firefox = {}; };
|
2024-06-30 03:56:48 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|