summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/systemd.nix6
1 files changed, 3 insertions, 3 deletions
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 {
50 ExecStart = toString (pkgs.writers.writePython3 "sync-keepass" {} '' 50 ExecStart = toString (pkgs.writers.writePython3 "sync-keepass" {} ''
51 import json 51 import json
52 import subprocess 52 import subprocess
53 from datetime import datetime 53 # from datetime import datetime
54 54
55 res = None 55 res = None
56 with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc: 56 with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc: # noqa: E501
57 res = json.load(proc.stdout) 57 res = json.load(proc.stdout)
58 print(res) 58 print(res)
59 ''); 59 '');
60 Environment = [ "RCLONE_PASSWORD_COMMAND=\"cat ${config.sops.secrets.gkleen-rclone.path}\"" "PATH=${pkgs.rclone}/bin" ]; 60 Environment = [ "RCLONE_PASSWORD_COMMAND=\"cat ${config.sops.secrets.gkleen-rclone.path}\"" "PATH=${pkgs.rclone}/bin" ];