diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2018-07-29 18:15:50 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2018-07-31 16:04:19 +0200 |
commit | c18b1328a52c0d5ce54924051a43a597b86ff4e3 (patch) | |
tree | 14116ec487ded277b81ff055781296ad9ecb1a53 /modules/services/mpd.nix | |
parent | 93ef6aefce9c2cf5f6a3598a5b263c872cdddfc4 (diff) |
Parametrize path to profile directory
Diffstat (limited to 'modules/services/mpd.nix')
-rw-r--r-- | modules/services/mpd.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/services/mpd.nix b/modules/services/mpd.nix index 5cc5811767c..822d2fe3936 100644 --- a/modules/services/mpd.nix +++ b/modules/services/mpd.nix @@ -131,13 +131,13 @@ in { After = [ "network.target" "sound.target" ]; Description = "Music Player Daemon"; }; - + Install = { WantedBy = [ "default.target" ]; }; Service = { - Environment = "PATH=%h/.nix-profile/bin"; + Environment = "PATH=${config.home.profileDirectory}/bin"; ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon ${mpdConf}"; Type = "notify"; ExecStartPre = ''${pkgs.bash}/bin/bash -c "${pkgs.coreutils}/bin/mkdir -p '${cfg.dataDir}' '${cfg.playlistDirectory}'"''; |