diff options
author | Soispha <soispha@vhack.eu> | 2024-01-13 11:38:29 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-01-13 11:38:29 +0100 |
commit | 12e3c1ad669c7b06bca3ce698798592f3f2567b6 (patch) | |
tree | a590ea17f9843e2b3163392fc05b5d30c028eeca /hm/soispha/conf/mpd/default.nix | |
parent | build(treewide): Update flake and shell library (diff) | |
download | nixos-config-12e3c1ad669c7b06bca3ce698798592f3f2567b6.zip |
fix(hm): Move the session variables to their associated service
Diffstat (limited to 'hm/soispha/conf/mpd/default.nix')
-rw-r--r-- | hm/soispha/conf/mpd/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hm/soispha/conf/mpd/default.nix b/hm/soispha/conf/mpd/default.nix index bbd345a7..49844b06 100644 --- a/hm/soispha/conf/mpd/default.nix +++ b/hm/soispha/conf/mpd/default.nix @@ -9,6 +9,10 @@ playlistDirectory = "${dataDir}/playlists"; runtimeDir = "/run/user/${builtins.toString osConfig.users.users.soispha.uid}/mpd"; in { + home.sessionVariables = { + MPD_HOST = "/run/user/${builtins.toString osConfig.users.users.soispha.uid}/mpd/socket"; + }; + systemd.user.services.mpd.Service.ExecStartPre = lib.mkForce '' ${pkgs.coreutils}/bin/mkdir -p "${dataDir}" "${playlistDirectory}" "${runtimeDir}" ''; |