1
0
Fork 0
dotfiles/system/nixos/atuin-sync.nix

35 lines
903 B
Nix
Raw Normal View History

2023-02-27 16:51:39 +00:00
{ pkgs, config, ... }:
{
systemd.services.atuin-sync = {
description = "atuin sync server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" "network-online.target" ];
wants = [ "network.target" "network-online.target" ];
serviceConfig = {
ExecStart = "${pkgs.atuin}/bin/atuin server start";
EnvironmentFile = [ config.age.secrets.atuin-environment.path ];
Restart = "on-failure";
2023-03-20 19:14:08 +00:00
DynamicUser = true;
2023-02-27 16:51:39 +00:00
RuntimeDirectory = "atuin";
RuntimeDirectoryMode = "0700";
};
};
2023-02-27 17:00:44 +00:00
2023-03-12 19:53:03 +00:00
services.nginx.virtualHosts."atuin-sync.kempkens.io" = {
listenAddresses = [ "100.108.165.26" "[fd7a:115c:a1e0:ab12:4843:cd96:626c:a51a]" ];
2023-04-03 13:03:52 +00:00
quic = true;
2023-03-12 19:53:03 +00:00
http3 = true;
onlySSL = true;
useACMEHost = "kempkens.io";
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8015";
};
};
2023-02-27 16:51:39 +00:00
}