2024-09-16 16:56:18 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
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}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|