Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
1004 B
Nix
40 lines
1004 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
name = "firefoxpwa";
|
|
meta.maintainers = with lib.maintainers; [ camillemndn ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
imports = [ ./common/x11.nix ];
|
|
environment.systemPackages = with pkgs; [
|
|
firefoxpwa
|
|
jq
|
|
];
|
|
|
|
programs.firefox = {
|
|
enable = true;
|
|
nativeMessagingHosts.packages = [ pkgs.firefoxpwa ];
|
|
};
|
|
|
|
services.jellyfin.enable = true;
|
|
};
|
|
|
|
enableOCR = true;
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
|
|
with subtest("Install a progressive web app"):
|
|
machine.wait_for_unit("jellyfin.service")
|
|
machine.wait_for_open_port(8096)
|
|
machine.succeed("firefoxpwa site install http://localhost:8096/web/manifest.json >&2")
|
|
|
|
with subtest("Launch the progressive web app"):
|
|
machine.succeed("firefoxpwa site launch $(jq -r < ~/.local/share/firefoxpwa/config.json '.sites | keys[0]') >&2")
|
|
machine.wait_for_window("Jellyfin")
|
|
machine.wait_for_text("Jellyfin")
|
|
'';
|
|
}
|