2024-06-30 03:56:48 +03:00
|
|
|
# This is a common user configuration.
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
__findFile,
|
|
|
|
config,
|
|
|
|
const,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
pkgsMaster,
|
|
|
|
pkgsUnstable,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}@args:
|
|
|
|
let
|
|
|
|
cfg = config.home.android;
|
|
|
|
android = import ./android args;
|
|
|
|
env = import ./env args;
|
|
|
|
file = import ./file args;
|
|
|
|
package = import <package> args;
|
|
|
|
programs = import ./program args;
|
|
|
|
stylix = import <system/Stylix.nix> args;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.home.android = {
|
|
|
|
enable = lib.mkEnableOption "the Android HM config.";
|
|
|
|
};
|
2024-10-22 05:52:21 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.packages = package.core;
|
2024-12-18 17:14:10 +03:00
|
|
|
nix.extraOptions = "experimental-features = nix-command flakes pipe-operators";
|
2024-12-18 09:40:11 +03:00
|
|
|
system.stateVersion = const.droidStateVersion;
|
|
|
|
time.timeZone = const.timeZone;
|
|
|
|
terminal = { inherit (android) font colors; };
|
|
|
|
home-manager.config = stylix // {
|
|
|
|
programs = with programs; core;
|
|
|
|
imports = [ inputs.stylix.homeManagerModules.stylix ];
|
|
|
|
home = {
|
|
|
|
inherit (env) sessionVariables;
|
|
|
|
inherit file;
|
|
|
|
stateVersion = const.droidStateVersion;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-30 03:56:48 +03:00
|
|
|
}
|