From 914dd76ceccc2de3bd5ffa176cf7984ad1bd5581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 20 Apr 2019 17:01:31 +0200 Subject: Move ympd password to secure location Related issue: https://git.immae.eu/mantisbt/view.php?id=122 --- nixops/modules/mpd/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nixops/modules/mpd/default.nix') diff --git a/nixops/modules/mpd/default.nix b/nixops/modules/mpd/default.nix index 7781b36..d59a34c 100644 --- a/nixops/modules/mpd/default.nix +++ b/nixops/modules/mpd/default.nix @@ -1,6 +1,12 @@ { lib, pkgs, config, myconfig, mylibs, ... }: { config = { + deployment.keys = { + mpd = { + permissions = "0400"; + text = myconfig.env.mpd.password; + }; + }; networking.firewall.allowedTCPPorts = [ 6600 ]; users.users.mpd.extraGroups = [ "wwwrun" ]; services.mpd = { -- cgit v1.2.3