nix-dotfiles/hosts/tsuki/services/atuin.nix

20 lines
399 B
Nix
Raw Normal View History

2023-10-06 13:43:24 +02:00
{ config, ... }:
let
cfg = config.services.atuin;
in
2023-07-12 01:40:49 +02:00
{
services.atuin = {
enable = true;
openRegistration = false;
};
2023-07-28 22:25:50 +02:00
2023-12-18 20:59:48 +01:00
systemd.services.atuin.requires = [ "postgresql.service" ];
2023-10-06 13:43:24 +02:00
local.socketActivation.atuin = {
enable = cfg.enable;
originalSocketAddress = "${cfg.host}:${toString cfg.port}";
newSocketAddress = "/run/atuin.sock";
privateNamespace = false;
};
2023-07-12 01:40:49 +02:00
}