diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2023-04-10 13:04:41 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2023-04-10 13:04:41 -0600 |
commit | 511aef97b2239a58930ae923e4c910ccf6b67e4b (patch) | |
tree | a447f7b8755a78a717e266d94f55a61332296db7 /kbg | |
parent | 941630d184215421fd2a5533a8761da16708ad9b (diff) | |
download | dotfiles-511aef97b2239a58930ae923e4c910ccf6b67e4b.tar.gz dotfiles-511aef97b2239a58930ae923e4c910ccf6b67e4b.tar.xz |
mpd: better parameterize service paths
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'kbg')
-rw-r--r-- | kbg/services/mpd.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kbg/services/mpd.scm b/kbg/services/mpd.scm index e6040a95..395c2df8 100644 --- a/kbg/services/mpd.scm +++ b/kbg/services/mpd.scm @@ -21,7 +21,7 @@ (start #~(make-forkexec-constructor (list #$(file-append coreutils "/bin/mkdir") "-p" - "/run/user/1000/mpd"))))) + (format #f "/run/user/~a/mpd" (getuid))))))) (mpd (shepherd-service (documentation "User MPD daemon") (provision '(mpd)) @@ -29,8 +29,8 @@ (start #~(make-forkexec-constructor (list #$(file-append mpd "/bin/mpd") "--no-daemon" - (string-append (getenv "HOME") - "/.config/mpd/mpd.conf")))) + (string-append (getenv "XDG_CONFIG_HOME") + "/mpd/mpd.conf")))) (stop #~(make-kill-destructor)) (actions (list (shepherd-action (name 'update-db) |