From 352405c0f607090e83f264393784729f6341dfc0 Mon Sep 17 00:00:00 2001 From: Cabia Rangris Date: Tue, 9 Mar 2021 02:50:05 +0300 Subject: [PATCH] nixos.spotifyd: fixed file not found error When using password_cmd, there's a 'file not found' error due to missing sh binary in path. For some reason, adding `path = [ "/bin" ]` doesn't fix the issue, but setting `SHELL` does. Related documentation: https://spotifyd.github.io/spotifyd/config/File.html#shell-used-to-run-commands-indicated-by-password_cmd-or-on_song_changed_hook----omit-in-toc--- --- nixos/modules/services/audio/spotifyd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/audio/spotifyd.nix b/nixos/modules/services/audio/spotifyd.nix index a589153248fe..9279a03aed4e 100644 --- a/nixos/modules/services/audio/spotifyd.nix +++ b/nixos/modules/services/audio/spotifyd.nix @@ -27,6 +27,7 @@ in wantedBy = [ "multi-user.target" ]; after = [ "network-online.target" "sound.target" ]; description = "spotifyd, a Spotify playing daemon"; + environment.SHELL = "/bin/sh"; serviceConfig = { ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --cache-path /var/cache/spotifyd --config-path ${spotifydConf}"; Restart = "always";