nest-home/redis/Redis.nix

34 lines
548 B
Nix
Raw Normal View History

2024-08-16 10:54:22 +02:00
{ pkgs, ... }:
{
home.file = {
".config/redis/redis.conf" = {
2024-08-16 10:58:16 +02:00
source = ./redis.conf;
2024-08-16 10:54:22 +02:00
};
};
systemd.user.services = {
Redis = {
Unit = {
Description = "Vic's redis";
After = [ "network-online.target" ];
};
Service = {
2024-08-16 10:59:52 +02:00
Type = "simple";
2024-08-16 10:54:22 +02:00
ExecStart = "redis-server .config/redis/redis.conf";
SyslogIdentifier = "hackey";
Restart = "always";
TimeoutSec = 0;
};
Install = {
WantedBy = [ "default.target" ];
};
};
};
}