Fix android build.

This commit is contained in:
Dmitry Voronin 2024-11-06 01:10:30 +03:00
parent a1f4bae2a6
commit 4b0b8897a3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,7 @@
...
}: let
borderSize = toString config.module.style.window.border;
dpiAware = if config.module.dpi.aware then "yes" else "no";
dpiAware = if (config.module.dpi.aware or false) then "yes" else "no";
fontStep = 1;
in {
file = (pkgs.formats.iniWithGlobalSection { }).generate "FootConfig" {

View file

@ -3,7 +3,7 @@
config,
...
}: let
dpiAware = if config.module.dpi.aware then "yes" else "no";
dpiAware = if (config.module.dpi.aware or false) then "yes" else "no";
in {
file = (pkgs.formats.ini { }).generate "FuzzelConfig" {
main = {

View file

@ -4,7 +4,7 @@
}: {
text = ''
require("gen").setup {
model = "${config.module.ollama.primaryModel}"
model = "${config.module.ollama.primaryModel or ""}"
}
'';
}

View file

@ -36,8 +36,8 @@
}
input type:keyboard {
xkb_layout ${config.module.keyboard.layouts}
xkb_options ${config.module.keyboard.options}
xkb_layout ${config.module.keyboard.layouts or ""}
xkb_options ${config.module.keyboard.options or ""}
}
# Hide mouse cursor after a period of inactivity.

View file

@ -143,8 +143,8 @@ in {
temperature = {
critical-threshold = 80;
format = "{temperatureC}°C";
hwmon-path-abs = "${config.module.hwmon.path}";
input-filename = "${config.module.hwmon.file}";
hwmon-path-abs = "${config.module.hwmon.path or ""}";
input-filename = "${config.module.hwmon.file or ""}";
interval = refreshInterval;
on-click = "foot -e bash -c btop";
on-click-right = "powersave toggle";