infra/config/services/atuin.nix

21 lines
436 B
Nix
Raw Permalink Normal View History

2024-09-18 16:10:20 +02:00
{ config, pkgs, ... }:
2024-09-16 16:56:18 +02:00
{
2023-07-06 20:36:22 +02:00
services.atuin = {
enable = true;
2024-09-16 16:56:18 +02:00
package = pkgs.unstable.atuin;
2023-07-06 20:36:22 +02:00
openRegistration = false;
maxHistoryLength = 1024 * 16;
port = 43473;
};
services.nginx.virtualHosts."atuin.winston.sh" = {
forceSSL = true;
enableACME = false;
useACMEHost = "winston.sh";
locations."/" = with config.services.atuin; {
proxyPass = "http://${host}:${toString port}";
};
};
}