aboutsummaryrefslogtreecommitdiff
path: root/modules/private/mpd.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2021-10-13 02:26:54 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-10-16 01:39:24 +0200
commitda30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 (patch)
treebd45012713b065829c1991e55d52081a8baef58a /modules/private/mpd.nix
parentbd5c5d4e23ebd3863a960976767ed4a83dfd07fe (diff)
downloadNix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.tar.gz
Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.tar.zst
Nix-da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2.zip
Move secrets to flakes
Diffstat (limited to 'modules/private/mpd.nix')
-rw-r--r--modules/private/mpd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/mpd.nix b/modules/private/mpd.nix
index 1e6e666..f2e87bb 100644
--- a/modules/private/mpd.nix
+++ b/modules/private/mpd.nix
@@ -26,7 +26,7 @@
26 systemd.services.mpd.serviceConfig.RuntimeDirectory = "mpd"; 26 systemd.services.mpd.serviceConfig.RuntimeDirectory = "mpd";
27 services.filesWatcher.mpd = { 27 services.filesWatcher.mpd = {
28 restart = true; 28 restart = true;
29 paths = [ "/var/secrets/mpd-config" ]; 29 paths = [ config.secrets.fullPaths."mpd-config" ];
30 }; 30 };
31 31
32 services.mpd = { 32 services.mpd = {
@@ -34,7 +34,7 @@
34 network.listenAddress = "any"; 34 network.listenAddress = "any";
35 musicDirectory = config.myEnv.mpd.folder; 35 musicDirectory = config.myEnv.mpd.folder;
36 extraConfig = '' 36 extraConfig = ''
37 include "/var/secrets/mpd-config" 37 include "${config.secrets.fullPaths."mpd-config"}"
38 audio_output { 38 audio_output {
39 type "null" 39 type "null"
40 name "No Output" 40 name "No Output"