nix/home/Android.nix

49 lines
980 B
Nix
Raw Normal View History

# 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;
2024-10-24 09:30:46 +03:00
programs = import ./program args;
in
# homePath = "/data/data/com.termux.nix/files/home";
{
options = {
home.android = {
enable = mkEnableOption "Android HM config.";
};
};
config = mkIf cfg.enable {
environment.packages = package.core;
time.timeZone = const.timeZone;
terminal = {
inherit (android) font colors;
};
home-manager.config = stylix // {
imports = [ inputs.stylix.homeManagerModules.stylix ];
home = {
file = import ./config args;
sessionVariables = import ./variable args;
stateVersion = const.droidStateVersion;
};
2024-10-24 09:30:46 +03:00
programs = with programs; core;
};
};
}