{ config, pkgs, ... }: let lorri = pkgs.runCommand "lorri-0.0.0" {} "mkdir $out"; plistPath = "${config.out}/user/Library/LaunchAgents/org.nixos.lorri.plist"; in { services.lorri.enable = true; test = '' echo checking lorri service in /Library/LaunchAgents >&2 grep -o "NIX_PATH" ${plistPath} grep -o "EnvironmentVariables" ${plistPath} grep -o "nixpkgs=" ${plistPath} grep -o "KeepAlive" ${plistPath} grep -o "RunAtLoad" ${plistPath} grep -o "ProcessType" ${plistPath} grep -o "Background" ${plistPath} grep -o "/bin/sh" ${plistPath} grep -o "org.nixos.lorri" ${plistPath} grep -o "-c" ${plistPath} grep -o "exec ${pkgs.lorri}/bin/lorri daemon" ${plistPath} ''; }