diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-20 17:01:31 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-20 17:02:05 +0200 |
commit | 914dd76ceccc2de3bd5ffa176cf7984ad1bd5581 (patch) | |
tree | 450c51de1c1273a150ed8b80cd2872f3261a738c /nixops/modules/mpd | |
parent | e905cd0bda71f359597ecb1f4554d3edb27e2ccb (diff) | |
download | Nix-914dd76ceccc2de3bd5ffa176cf7984ad1bd5581.tar.gz Nix-914dd76ceccc2de3bd5ffa176cf7984ad1bd5581.tar.zst Nix-914dd76ceccc2de3bd5ffa176cf7984ad1bd5581.zip |
Move ympd password to secure location
Related issue: https://git.immae.eu/mantisbt/view.php?id=122
Diffstat (limited to 'nixops/modules/mpd')
-rw-r--r-- | nixops/modules/mpd/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
1 | { lib, pkgs, config, myconfig, mylibs, ... }: | 1 | { lib, pkgs, config, myconfig, mylibs, ... }: |
2 | { | 2 | { |
3 | config = { | 3 | config = { |
4 | deployment.keys = { | ||
5 | mpd = { | ||
6 | permissions = "0400"; | ||
7 | text = myconfig.env.mpd.password; | ||
8 | }; | ||
9 | }; | ||
4 | networking.firewall.allowedTCPPorts = [ 6600 ]; | 10 | networking.firewall.allowedTCPPorts = [ 6600 ]; |
5 | users.users.mpd.extraGroups = [ "wwwrun" ]; | 11 | users.users.mpd.extraGroups = [ "wwwrun" ]; |
6 | services.mpd = { | 12 | services.mpd = { |