{ config, pkgs, ... }: { services.autossh.sessions = [ { name = "foo"; user = "jfelice"; extraArguments = "-i /some/key -T -N bar.eraserhead.net"; } ]; test = '' plist=${config.out}/Library/LaunchDaemons/org.nixos.autossh-foo.plist test -f $plist grep '/bin/wait4path /nix/store && exec /nix/store/.*/bin/autossh ' $plist grep '/bin/wait4path /nix/store && exec.*-i /some/key ' $plist tr -d '\n\t ' <$plist |grep 'KeepAlive' ''; }