mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
34 lines
801 B
Nix
34 lines
801 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.proton-pass-agent = {
|
|
enable = true;
|
|
socket = "proton-pass-agent/socket";
|
|
extraArgs = [
|
|
"--share-id"
|
|
"123456789"
|
|
"--vault-name"
|
|
"MySshKeyVault"
|
|
"--refresh-interval"
|
|
"7200"
|
|
"--create-new-identities"
|
|
"MySshKeyVault"
|
|
];
|
|
};
|
|
|
|
nmt.script =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
''
|
|
plistFile=LaunchAgents/org.nix-community.home.proton-pass-agent.plist
|
|
|
|
assertFileExists $plistFile
|
|
assertFileContent $plistFile ${./full-service-expected.plist}
|
|
''
|
|
else
|
|
''
|
|
serviceFile=home-files/.config/systemd/user/proton-pass-agent.service
|
|
|
|
assertFileExists $serviceFile
|
|
assertFileContent $serviceFile ${./full-service-expected.service}
|
|
'';
|
|
}
|