From aa38799fafedb97bff7aac9569a3241c0b606fe9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 31 Jan 2022 19:29:38 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accounts/gkleen@sif') diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index a5b53b0c..34ff4668 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -50,11 +50,11 @@ in { ExecStart = toString (pkgs.writers.writePython3 "sync-keepass" {} '' import json import subprocess - from datetime import datetime + # from datetime import datetime res = None - with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc: - res = json.load(proc.stdout) + with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc: # noqa: E501 + res = json.load(proc.stdout) print(res) ''); Environment = [ "RCLONE_PASSWORD_COMMAND=\"cat ${config.sops.secrets.gkleen-rclone.path}\"" "PATH=${pkgs.rclone}/bin" ]; -- cgit v1.2.3