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