summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-31 19:26:28 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-31 19:26:28 +0100
commit9165f9e4d505acc7533372b91b49e9af49819853 (patch)
treedcf4e77b86cd0e5976aceb5569f8f66d8c8d116d /accounts/gkleen@sif
parentaf763b3783d685346cff6e3ce1557a5d962b52b1 (diff)
downloadnixos-9165f9e4d505acc7533372b91b49e9af49819853.tar
nixos-9165f9e4d505acc7533372b91b49e9af49819853.tar.gz
nixos-9165f9e4d505acc7533372b91b49e9af49819853.tar.bz2
nixos-9165f9e4d505acc7533372b91b49e9af49819853.tar.xz
nixos-9165f9e4d505acc7533372b91b49e9af49819853.zip
...
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/systemd.nix4
1 files 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 {
48 Service = { 48 Service = {
49 Type = "oneshot"; 49 Type = "oneshot";
50 WorkingDirectory = "~"; 50 WorkingDirectory = "~";
51 ExecStart = pkgs.writers.writePython3 "sync-keepass" {} '' 51 ExecStart = toString (pkgs.writers.writePython3 "sync-keepass" {} ''
52 import json 52 import json
53 import subprocess 53 import subprocess
54 from datetime import datetime 54 from datetime import datetime
@@ -57,7 +57,7 @@ in {
57 with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc: 57 with subprocess.Popen(['rclone', 'lsjson', 'surtr:store.kdbx'], stdout=subprocess.PIPE) as proc:
58 res = json.load(proc.stdout) 58 res = json.load(proc.stdout)
59 print(res) 59 print(res)
60 ''; 60 '');
61 Environment = "RCLONE_PASSWORD_COMMAND=\"cat ${config.sops.secrets.gkleen-rclone.path}\""; 61 Environment = "RCLONE_PASSWORD_COMMAND=\"cat ${config.sops.secrets.gkleen-rclone.path}\"";
62 }; 62 };
63 }; 63 };