2020-02-29 06:00:21 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2020-11-21 03:23:16 +03:00
|
|
|
minimalX11Config = pkgs.runCommandNoCC "minimalX11Config" {
|
|
|
|
allowedReferences = [ "out" ];
|
|
|
|
} ''
|
|
|
|
(PS4=" $ "; set -x
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r ${pkgs.xlibs.xkeyboardconfig}/share/X11/xkb $out/xkb
|
|
|
|
cp -r ${pkgs.xlibs.libX11.out}/share/X11/locale $out/locale
|
|
|
|
)
|
|
|
|
|
|
|
|
for f in $(grep -lIiR '${pkgs.xlibs.libX11.out}' $out); do
|
|
|
|
printf ':: substituting original path for $out in "%s".\n' "$f"
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "${pkgs.xlibs.libX11.out}/share/X11/locale/en_US.UTF-8/Compose" "$out/locale/en_US.UTF-8/Compose"
|
|
|
|
done
|
|
|
|
'';
|
2020-02-29 06:00:21 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
mobile.boot.stage-1.contents = with pkgs; [
|
|
|
|
{
|
2021-06-14 01:06:53 +03:00
|
|
|
object = "${pkgs.mobile-nixos.stage-1.boot-error}/libexec/boot-error.mrb";
|
2020-03-10 02:44:27 +03:00
|
|
|
symlink = "/applets/boot-error.mrb";
|
|
|
|
}
|
2020-03-10 00:31:03 +03:00
|
|
|
{
|
2021-06-14 01:06:53 +03:00
|
|
|
object = "${pkgs.mobile-nixos.stage-1.boot-splash}/libexec/boot-splash.mrb";
|
2020-03-10 00:31:03 +03:00
|
|
|
symlink = "/applets/boot-splash.mrb";
|
|
|
|
}
|
2020-02-29 06:00:21 +03:00
|
|
|
{
|
2021-06-14 01:06:53 +03:00
|
|
|
object = "${pkgs.mobile-nixos.stage-1.boot-recovery-menu}/libexec/boot-recovery-menu.mrb";
|
2020-02-29 06:00:21 +03:00
|
|
|
symlink = "/applets/boot-selection.mrb";
|
|
|
|
}
|
2020-11-21 03:23:16 +03:00
|
|
|
{
|
|
|
|
object = "${minimalX11Config}";
|
|
|
|
symlink = "/etc/X11";
|
|
|
|
}
|
2020-02-29 23:36:36 +03:00
|
|
|
];
|
2020-11-21 03:23:16 +03:00
|
|
|
|
|
|
|
mobile.boot.stage-1.environment = {
|
|
|
|
XKB_CONFIG_ROOT = "/etc/X11/xkb";
|
|
|
|
XLOCALEDIR = "/etc/X11/locale";
|
|
|
|
};
|
2020-02-29 06:00:21 +03:00
|
|
|
}
|