use sotp
for TOTP secrets
This commit is contained in:
parent
f2ea7aa875
commit
e18b71ab99
4 changed files with 35 additions and 4 deletions
8
tasks.py
8
tasks.py
|
@ -41,6 +41,14 @@ def deploy_nixos(hosts: List[DeployHost]) -> None:
|
|||
g.run_function(deploy)
|
||||
|
||||
|
||||
@task
|
||||
def sotp(c: Any, acct: str) -> None:
|
||||
"""
|
||||
Get TOTP token from sops
|
||||
"""
|
||||
c.run(f"nix develop .#sotp -c sotp {acct}")
|
||||
|
||||
|
||||
@task
|
||||
def update_sops_files(c: Any) -> None:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue