From 9b95af234821bad0834f4990c35dcbed61112357 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 6 Feb 2022 00:57:28 +0100 Subject: home: fix syncical turns out systemd user services just don't inherit any PATH at all?? --- home/home.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home/home.nix b/home/home.nix index 1846e12..d48c162 100644 --- a/home/home.nix +++ b/home/home.nix @@ -108,7 +108,13 @@ systemd.user.services.syncical = let feeds = (import inputs.feeds).ical; in { Unit.Description = "syncs ical feeds for almanac agenda"; - Service.ExecStart = "${./scripts/sync.scm} ${lib.fold (a: b: a + " " + b) "" feeds}"; + Service = { + ExecStart = "${pkgs.gauche}/bin/gosh ${./scripts/sync.scm} ${lib.fold (a: b: a + " " + b) "" feeds}"; + X-ReloadIfChanged = true; + Environment = '' + PATH=${pkgs.curl}/bin:${pkgs.coreutils}/bin + ''; + }; }; systemd.user.timers.syncical = { -- cgit v1.2.3