From 3ba09a8e2c4e1adffbb518b23efae203bebb4577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 25 Aug 2017 23:05:51 +0100 Subject: [PATCH] nixos/airsonic: remove full-path commands from preStart systemd services are initialised with a default PATH. This path includes coreutils. --- nixos/modules/services/misc/airsonic.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/misc/airsonic.nix b/nixos/modules/services/misc/airsonic.nix index 3ec22719720b..b92104787a56 100644 --- a/nixos/modules/services/misc/airsonic.nix +++ b/nixos/modules/services/misc/airsonic.nix @@ -84,10 +84,10 @@ in { preStart = '' # Install transcoders. - ${pkgs.coreutils}/bin/rm -rf ${cfg.home}/transcode - ${pkgs.coreutils}/bin/mkdir -p ${cfg.home}/transcode + rm -rf ${cfg.home}/transcode + mkdir -p ${cfg.home}/transcode for exe in ${toString cfg.transcoders}; do - ${pkgs.coreutils}/bin/ln -sf "$exe" ${cfg.home}/transcode + ln -sf "$exe" ${cfg.home}/transcode done ''; serviceConfig = {