1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-15 21:08:21 +00:00
nix-darwin/tests/services-lorri.nix
2020-08-29 16:35:43 +02:00

18 lines
533 B
Nix

{ config, pkgs, ... }:
let
nix = pkgs.runCommand "nix-0.0.0" { version = "1.11.6"; } "mkdir -p $out";
plistPath = "${config.out}/user/Library/LaunchAgents/org.nixos.lorri.plist";
in
{
services.lorri.enable = true;
nix.package = nix;
test = ''
echo checking lorri service in /Library/LaunchAgents >&2
cat ${plistPath}
grep -o "<key>KeepAlive</key>" ${plistPath}
grep -o "<string>org.nixos.lorri</string>" ${plistPath}
grep -o "<string>exec ${pkgs.lorri}/bin/lorri daemon</string>" ${plistPath}
'';
}