summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/systemd.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-31 19:29:38 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-31 19:29:38 +0100
commitaa38799fafedb97bff7aac9569a3241c0b606fe9 (patch)
tree283dcc592a6521587d98253aeb911c5487c46b68 /accounts/gkleen@sif/systemd.nix
parentacaa2515da43853f91f8bfa893c9462dd72ac0aa (diff)
downloadnixos-aa38799fafedb97bff7aac9569a3241c0b606fe9.tar
nixos-aa38799fafedb97bff7aac9569a3241c0b606fe9.tar.gz
nixos-aa38799fafedb97bff7aac9569a3241c0b606fe9.tar.bz2
nixos-aa38799fafedb97bff7aac9569a3241c0b606fe9.tar.xz
nixos-aa38799fafedb97bff7aac9569a3241c0b606fe9.zip
...
Diffstat (limited to 'accounts/gkleen@sif/systemd.nix')
-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" ];