From 9165f9e4d505acc7533372b91b49e9af49819853 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 31 Jan 2022 19:26:28 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 4ed75e85..e6d36a16 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -48,7 +48,7 @@ in { Service = { Type = "oneshot"; WorkingDirectory = "~"; - ExecStart = pkgs.writers.writePython3 "sync-keepass" {} '' + ExecStart = toString (pkgs.writers.writePython3 "sync-keepass" {} '' import json import subprocess from datetime import datetime @@ -57,7 +57,7 @@ in { with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc: res = json.load(proc.stdout) print(res) - ''; + ''); Environment = "RCLONE_PASSWORD_COMMAND=\"cat ${config.sops.secrets.gkleen-rclone.path}\""; }; }; -- cgit v1.2.3