From db2003e4e601aa4b77b8329145621c4081d476b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sun, 23 Apr 2023 20:13:39 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20atuin=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/services/atuin/default.nix | 19 +++++++++++++++++++ hosts/hydrogen/services/default.nix | 2 +- hosts/neodymium/home/shell/default.nix | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 hosts/hydrogen/services/atuin/default.nix diff --git a/hosts/hydrogen/services/atuin/default.nix b/hosts/hydrogen/services/atuin/default.nix new file mode 100644 index 0000000..d734d66 --- /dev/null +++ b/hosts/hydrogen/services/atuin/default.nix @@ -0,0 +1,19 @@ +{ ... }: { + + services.atuin = { + enable = true; + openRegistration = false; + maxHistoryLength = 1000000000; + }; + + services.nginx = { + virtualHosts = { + "atuin.fainsin.bzh" = { + forceSSL = true; + enableACME = true; + locations."/" = { proxyPass = "http://127.0.0.1:8888"; }; + }; + }; + }; + +} diff --git a/hosts/hydrogen/services/default.nix b/hosts/hydrogen/services/default.nix index 3bd4bb7..9991407 100644 --- a/hosts/hydrogen/services/default.nix +++ b/hosts/hydrogen/services/default.nix @@ -1 +1 @@ -{ imports = [ ./gitea ./blocky ./wireguard ]; } +{ imports = [ ./atuin ./blocky ./gitea ./wireguard ]; } diff --git a/hosts/neodymium/home/shell/default.nix b/hosts/neodymium/home/shell/default.nix index 81dfd6f..a74fb61 100644 --- a/hosts/neodymium/home/shell/default.nix +++ b/hosts/neodymium/home/shell/default.nix @@ -46,6 +46,7 @@ in { programs.atuin = { enable = true; enableZshIntegration = true; + settings = { sync_address = "https://atuin.fainsin.bzh"; }; }; programs.zsh = { enable = true;