nix/home/Android.nix

47 lines
1 KiB
Nix
Raw Normal View History

# This is a common user configuration.
{
2024-11-04 04:37:29 +03:00
__findFile,
config,
const,
inputs,
lib,
pkgs,
pkgsMaster,
2024-11-15 01:42:21 +03:00
pkgsUnstable,
2024-11-04 04:37:29 +03:00
self,
...
} @args: let
cfg = config.home.android;
android = import ./android args;
2024-11-16 04:56:36 +03:00
env = import ./env args;
file = import ./file args;
2024-11-04 04:37:29 +03:00
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-11-04 04:37:29 +03:00
config = lib.mkIf cfg.enable {
environment.packages = package.core;
2024-11-15 01:42:21 +03:00
nix.extraOptions = "experimental-features = nix-command flakes";
system.stateVersion = const.droidStateVersion;
time.timeZone = const.timeZone;
2024-11-04 04:37:29 +03:00
terminal = {
inherit (android) font colors;
};
home-manager.config = stylix // {
programs = with programs; core;
imports = [
inputs.stylix.homeManagerModules.stylix
];
home = {
2024-11-16 04:56:36 +03:00
inherit (env) sessionVariables;
inherit file;
stateVersion = const.droidStateVersion;
2024-11-04 04:37:29 +03:00
};
};
};
}