diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-31 15:39:56 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-31 15:52:05 +0100 |
commit | 60f67ae37a68ce0f57e7e7392953fd8ae5a7a4d4 (patch) | |
tree | a4f6527219ac1434bbbf0f3b296d543b724fb701 | |
parent | 7590e6bd7ec2153ad70f1e238388cfac50942fa4 (diff) | |
download | Nix-60f67ae37a68ce0f57e7e7392953fd8ae5a7a4d4.tar.gz Nix-60f67ae37a68ce0f57e7e7392953fd8ae5a7a4d4.tar.zst Nix-60f67ae37a68ce0f57e7e7392953fd8ae5a7a4d4.zip |
Add Redis
-rw-r--r-- | virtual/eldiron.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index 4087be8..3d480fd 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix | |||
@@ -105,6 +105,10 @@ | |||
105 | install -d -m 0755 /var/lib/acme/acme-challenge | 105 | install -d -m 0755 /var/lib/acme/acme-challenge |
106 | install -d -m 0755 /var/www | 106 | install -d -m 0755 /var/www |
107 | ''; | 107 | ''; |
108 | redis = '' | ||
109 | mkdir -p /run/redis | ||
110 | chown redis /run/redis | ||
111 | ''; | ||
108 | }; | 112 | }; |
109 | 113 | ||
110 | services.httpd = let | 114 | services.httpd = let |
@@ -247,6 +251,17 @@ | |||
247 | } | 251 | } |
248 | ]; | 252 | ]; |
249 | 253 | ||
254 | # FIXME: backup | ||
255 | services.redis = rec { | ||
256 | enable = true; | ||
257 | bind = "127.0.0.1"; | ||
258 | unixSocket = "/run/redis/redis.sock"; | ||
259 | extraConfig = '' | ||
260 | unixsocketperm 777 | ||
261 | maxclients 1024 | ||
262 | ''; | ||
263 | }; | ||
264 | |||
250 | # FIXME: initial sync | 265 | # FIXME: initial sync |
251 | # FIXME: backup | 266 | # FIXME: backup |
252 | # FIXME: restart after pam | 267 | # FIXME: restart after pam |