From 0e3a4c35d2deeb96134951d4e142e624f538e3f4 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 12 Jul 2023 01:40:49 +0200 Subject: [PATCH] tsuki/atuin: set up atuin server --- hosts/tsuki/configuration.nix | 2 ++ hosts/tsuki/services/atuin.nix | 7 +++++++ hosts/tsuki/services/nginx/default.nix | 3 +-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 hosts/tsuki/services/atuin.nix diff --git a/hosts/tsuki/configuration.nix b/hosts/tsuki/configuration.nix index 0103ae7..fd45628 100644 --- a/hosts/tsuki/configuration.nix +++ b/hosts/tsuki/configuration.nix @@ -3,6 +3,8 @@ imports = [ (modulesPath + "/profiles/qemu-guest.nix") + ./services/atuin.nix + ./services/borg.nix # ./services/calibre.nix ./services/gitea ./services/grafana diff --git a/hosts/tsuki/services/atuin.nix b/hosts/tsuki/services/atuin.nix new file mode 100644 index 0000000..399c815 --- /dev/null +++ b/hosts/tsuki/services/atuin.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + services.atuin = { + enable = true; + openRegistration = false; + }; +} diff --git a/hosts/tsuki/services/nginx/default.nix b/hosts/tsuki/services/nginx/default.nix index ecb485f..44b8cbf 100644 --- a/hosts/tsuki/services/nginx/default.nix +++ b/hosts/tsuki/services/nginx/default.nix @@ -171,12 +171,11 @@ proxy_ssl_verify off; ''; }) - (proxy ["hydra"] "http://localhost:${s ports.hydra}" {}) + (proxy ["hydra"] "http://localhost:${s config.services.hydra.port}" {}) (proxy ["atuin"] "http://localhost:${s config.services.atuin.port}" {}) (proxy ["vpn"] "http://localhost:${s config.services.headscale.port}" { locations."/".proxyWebsockets = true; }) - (proxy ["hydra"] "http://localhost:${s config.services.hydra.port}" {}) ] ++ (let stickerpickers = pkgs.callPackage ../matrix/maunium-stickerpicker.nix { inherit (inputs) maunium-stickerpicker secrets;