use sotp for TOTP secrets

This commit is contained in:
zowoq 2023-10-02 09:14:57 +10:00
parent f2ea7aa875
commit e18b71ab99
4 changed files with 35 additions and 4 deletions

View file

@ -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:
"""