Files
home-manager/tests/modules/services/proton-pass-agent/basic-service.nix
2026-04-13 22:02:40 -05:00

24 lines
604 B
Nix

{ 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}
'';
}