diff options
Diffstat (limited to 'accounts')
| -rw-r--r-- | accounts/gkleen@sif/systemd.nix | 4 |
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 | }; |
