From f81f8b2a47382a0f67fc444ed7dc3a39b9c43504 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Sat, 8 Feb 2025 22:52:51 +0200 Subject: [PATCH] fix workout tracker url --- flake.lock | 6 +++--- modules/services/workout-sync.nix | 11 ++++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 90a6eea..d50d85c 100644 --- a/flake.lock +++ b/flake.lock @@ -717,11 +717,11 @@ ] }, "locked": { - "lastModified": 1739047488, - "narHash": "sha256-XRidLinKPemmrWZbxFLJMV21Phc529Q6nfx/8HzwnRg=", + "lastModified": 1739053638, + "narHash": "sha256-pAJmNmRu2rwFOw6yNwLH1jZn7J1FQqKyfY7u63oi1io=", "owner": "~repomaa", "repo": "workout-sync", - "rev": "275adde9c83df8e6cd4eed091913faf0e6e05197", + "rev": "00a0f1ae718d0fdb5dea9c362658bb29f9eb3d78", "type": "sourcehut" }, "original": { diff --git a/modules/services/workout-sync.nix b/modules/services/workout-sync.nix index 7337814..29e9ca7 100644 --- a/modules/services/workout-sync.nix +++ b/modules/services/workout-sync.nix @@ -31,7 +31,16 @@ in ExecStart = "${workout-sync}/bin/workout-sync"; Restart = "always"; DynamicUser = true; - EnvironmentFile = "/var/secrets/workout-sync.env"; + BindReadOnlyPaths = [ + /run/systemd/resolve/stub-resolv.conf + /etc/ssl + /etc/static/ssl + /etc/resolv.conf + /etc/static/resolv.conf + /etc/nsswitch.conf + /etc/static/nsswitch.conf + /etc/hosts + ]; }; wantedBy = [ "multi-user.target" ]; confinement.enable = true;