From 2ff09158f322f06d0d8c168e0dfc09f0d52bfd85 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 11 Dec 2017 16:58:50 +0100 Subject: [PATCH] systemd: fix systemctl command The command's path should be taken from the configuration, not be assumed to be in `PATH`. --- modules/systemd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/systemd.nix b/modules/systemd.nix index 778912a17..69b0979fc 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -121,13 +121,13 @@ in home.activation.reloadSystemD = dagEntryAfter ["linkGeneration"] '' function isStartable() { local service="$1" - [[ $(systemctl --user show -p RefuseManualStart "$service") == *=no ]] + [[ $(${cfg.systemctlPath} --user show -p RefuseManualStart "$service") == *=no ]] } function isStoppable() { if [[ -v oldGenPath ]] ; then local service="$1" - [[ $(systemctl --user show -p RefuseManualStop "$service") == *=no ]] + [[ $(${cfg.systemctlPath} --user show -p RefuseManualStop "$service") == *=no ]] fi }