proton-pass-agent: adapt the services to match the documentation
See https://protonpass.github.io/pass-cli/commands/ssh-agent/#setting-ssh_auth_sock-automatically-on-login section 'Starting the daemon automatically on login'.
This commit is contained in:
parent
d1759673d7
commit
f8e57407f4
5 changed files with 6 additions and 16 deletions
|
|
@ -93,6 +93,7 @@ in
|
|||
};
|
||||
Service = {
|
||||
ExecStart = lib.concatStringsSep " " cmd;
|
||||
Restart = "on-failure";
|
||||
KeyringMode = "shared";
|
||||
};
|
||||
};
|
||||
|
|
@ -105,10 +106,7 @@ in
|
|||
"-c"
|
||||
(lib.concatStringsSep " " cmd)
|
||||
];
|
||||
KeepAlive = {
|
||||
Crashed = true;
|
||||
SuccessfulExit = false;
|
||||
};
|
||||
KeepAlive = true;
|
||||
ProcessType = "Background";
|
||||
RunAtLoad = true;
|
||||
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/Proton Pass CLI/ssh-agent-stdout.log";
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@
|
|||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>KeepAlive</key>
|
||||
<dict>
|
||||
<key>Crashed</key>
|
||||
<true/>
|
||||
<key>SuccessfulExit</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<true/>
|
||||
<key>Label</key>
|
||||
<string>org.nix-community.home.proton-pass-agent</string>
|
||||
<key>ProcessType</key>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ WantedBy=default.target
|
|||
[Service]
|
||||
ExecStart=@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path %t/proton-pass-agent/socket
|
||||
KeyringMode=shared
|
||||
Restart=on-failure
|
||||
|
||||
[Unit]
|
||||
Description=Proton Pass SSH agent
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@
|
|||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>KeepAlive</key>
|
||||
<dict>
|
||||
<key>Crashed</key>
|
||||
<true/>
|
||||
<key>SuccessfulExit</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<true/>
|
||||
<key>Label</key>
|
||||
<string>org.nix-community.home.proton-pass-agent</string>
|
||||
<key>ProcessType</key>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ WantedBy=default.target
|
|||
[Service]
|
||||
ExecStart=@proton-pass-cli@/bin/pass-cli ssh-agent start --socket-path %t/proton-pass-agent/socket --share-id 123456789 --vault-name MySshKeyVault --refresh-interval 7200 --create-new-identities MySshKeyVault
|
||||
KeyringMode=shared
|
||||
Restart=on-failure
|
||||
|
||||
[Unit]
|
||||
Description=Proton Pass SSH agent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue