2024-06-07 11:37:49 +02:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
name = "lomiri-filemanager-app-standalone";
|
|
|
|
meta.maintainers = lib.teams.lomiri.members;
|
|
|
|
|
|
|
|
nodes.machine =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./common/x11.nix ];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs.lomiri; [
|
|
|
|
suru-icon-theme
|
|
|
|
lomiri-filemanager-app
|
|
|
|
];
|
|
|
|
variables = {
|
|
|
|
UITK_ICON_THEME = "suru";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i18n.supportedLocales = [ "all" ];
|
|
|
|
|
|
|
|
fonts.packages = with pkgs; [
|
|
|
|
# Intended font & helps with OCR
|
2024-07-19 19:22:25 +02:00
|
|
|
ubuntu-classic
|
2024-06-07 11:37:49 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_x()
|
|
|
|
|
|
|
|
with subtest("lomiri filemanager launches"):
|
|
|
|
machine.execute("lomiri-filemanager-app >&2 &")
|
|
|
|
machine.wait_for_text(r"(filemanager.ubports|alice|items|directories|files|folder)")
|
|
|
|
machine.screenshot("lomiri-filemanager_open")
|
|
|
|
|
|
|
|
machine.succeed("pkill -f lomiri-filemanager-app")
|
|
|
|
|
|
|
|
with subtest("lomiri filemanager localisation works"):
|
|
|
|
machine.execute("env LANG=de_DE.UTF-8 lomiri-filemanager-app >&2 &")
|
|
|
|
machine.wait_for_text(r"(Elemente|Verzeichnisse|Dateien|Ordner)")
|
|
|
|
machine.screenshot("lomiri-filemanager_localised")
|
|
|
|
'';
|
|
|
|
}
|