Android: Replace Makefile terminal init with terminal option.
This commit is contained in:
parent
501d09c746
commit
fdd1f38a33
2
Makefile
2
Makefile
|
@ -7,8 +7,6 @@ help:
|
|||
|
||||
android:
|
||||
nix-on-droid switch --flake $(flake)
|
||||
cp ~/.termux/_font.ttf ~/.termux/font.ttf
|
||||
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
||||
cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg
|
||||
cp ~/.Wallpaper /sdcard/Download/Wallpaper.png
|
||||
|
||||
|
|
|
@ -27,17 +27,19 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
time.timeZone = const.timeZone;
|
||||
environment.packages = package.core;
|
||||
time.timeZone = const.timeZone;
|
||||
|
||||
terminal = {
|
||||
inherit (android) font colors;
|
||||
};
|
||||
|
||||
home-manager.config = stylix // {
|
||||
imports = [ inputs.stylix.homeManagerModules.stylix ];
|
||||
home = {
|
||||
stateVersion = const.droidStateVersion;
|
||||
file = import ./config args;
|
||||
sessionVariables = import ./variable args;
|
||||
file = (import ./config args) // {
|
||||
".termux/_font.ttf".source = android.font;
|
||||
".termux/_colors.properties".text = android.colors;
|
||||
};
|
||||
stateVersion = const.droidStateVersion;
|
||||
};
|
||||
programs = import ./program args;
|
||||
};
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out
|
||||
'';
|
||||
|
||||
colors = ''
|
||||
background=#${config.style.color.bg.dark}
|
||||
foreground=#${config.style.color.fg.light}
|
||||
'';
|
||||
colors = with config.style.color; {
|
||||
background = "#${bg.dark}";
|
||||
cursor = "#${fg.light}";
|
||||
foreground = "#${fg.light}";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue