X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmpd.nix;h=1e6e666d978f6881a70f92f3aca66d04030e831e;hb=3c50eea8d946bf8417f49fa8a4a6e109e0439c7b;hp=c7e24862e00ad4c038187867e8aba9fb67ba6a9f;hpb=d2e703c560bc029c3d607058de2935bbf1cb0559;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/mpd.nix b/modules/private/mpd.nix index c7e2486..1e6e666 100644 --- a/modules/private/mpd.nix +++ b/modules/private/mpd.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: { options.myServices.mpd.enable = lib.mkEnableOption "enable MPD"; config = lib.mkIf config.myServices.mpd.enable { @@ -9,7 +9,7 @@ { dest = "mpd"; permissions = "0400"; - text = myconfig.env.mpd.password; + text = config.myEnv.mpd.password; } { dest = "mpd-config"; @@ -17,7 +17,7 @@ user = "mpd"; group = "mpd"; text = '' - password "${myconfig.env.mpd.password}@read,add,control,admin" + password "${config.myEnv.mpd.password}@read,add,control,admin" ''; } ]; @@ -32,7 +32,7 @@ services.mpd = { enable = true; network.listenAddress = "any"; - musicDirectory = myconfig.env.mpd.folder; + musicDirectory = config.myEnv.mpd.folder; extraConfig = '' include "/var/secrets/mpd-config" audio_output {