2.home-manager/tests/modules/services/proton-pass-agent/basic-service.nix
2026-01-26 09:44:48 -06:00

23 lines
612 B
Nix

{ config, pkgs, ... }:
{
services.proton-pass-agent = {
enable = true;
socket = "proton-pass-agent/socket";
};
nmt.script =
if pkgs.stdenv.hostPlatform.isDarwin then
''
plistFile=LaunchAgents/org.nix-community.home.proton-pass-agent.plist
assertFileExists $plistFile
assertFileContent $plistFile ${./basic-service-expected.plist}
''
else
''
serviceFile=home-files/.config/systemd/user/proton-pass-agent.service
assertFileExists $serviceFile
assertFileContent $serviceFile ${./basic-service-expected.service}
'';
}