X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fmpd.nix;h=1e6e666d978f6881a70f92f3aca66d04030e831e;hp=c7e24862e00ad4c038187867e8aba9fb67ba6a9f;hb=ab8f306d7c2c49b8116e1af7b355ed2384617ed9;hpb=4227853a03923e04daf3dd511a4b5a1ab5d527e7 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 {