16 lines
306 B
Nix
Executable file
16 lines
306 B
Nix
Executable file
{ config, lib, pkgs, options, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.services.redis;
|
|
in {
|
|
options.modules.services.redis = {
|
|
enable = mkEnableOption "enable redis, a speedy cache database";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.redis.servers."" = {
|
|
enable = true;
|
|
};
|
|
};
|
|
}
|