]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/redis.nix
nix: fix sourcephile-shred-tmp
[sourcephile-nix.git] / servers / mermet / redis.nix
1 { pkgs, lib, config, ... }:
2 let
3 inherit (config.users) users;
4 in
5 {
6 services.redis = {
7 enable = true;
8 unixSocket = "/run/redis/redis.socket";
9 databases = 16;
10 syslog = true;
11 extraConfig = ''
12 unixsocketperm 660
13 maxclients 1024
14 '';
15 };
16
17 users.users.redis.group = "redis";
18 users.groups."redis" = {};
19
20 systemd.services.redis.serviceConfig = {
21 RuntimeDirectoryMode = "0750";
22 Group = users.redis.group;
23 };
24 }