diff options
author | Cabia Rangris <me@cab404.ru> | 2021-03-09 02:50:05 +0300 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2021-03-10 13:26:10 +0100 |
commit | 352405c0f607090e83f264393784729f6341dfc0 (patch) | |
tree | 01effc5f0775d4f08770880f307f99f8d50dfe9e /nixos/modules | |
parent | 86ee8dd8ff48f2da3577077720adf587b72908b8 (diff) |
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---
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/audio/spotifyd.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/spotifyd.nix b/nixos/modules/services/audio/spotifyd.nix index a589153248fe9..9279a03aed4e5 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"; |