From 6f62b499cf23593bf0b6eb6957926f6202b4002e Mon Sep 17 00:00:00 2001 From: 0x4A6F <0x4A6F@users.noreply.github.com> Date: Sat, 18 Mar 2023 14:12:05 +0100 Subject: [PATCH] nixos/atuin: add maxHistoryLength --- nixos/modules/services/misc/atuin.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/misc/atuin.nix b/nixos/modules/services/misc/atuin.nix index 508e2862b63f..c603042fb306 100644 --- a/nixos/modules/services/misc/atuin.nix +++ b/nixos/modules/services/misc/atuin.nix @@ -28,6 +28,12 @@ in description = mdDoc "The host address the atuin server should listen on."; }; + maxHistoryLength = mkOption { + type = types.int; + default = 8192; + description = mdDoc "The max length of each history item the atuin server should store."; + }; + port = mkOption { type = types.port; default = 8888; @@ -72,6 +78,7 @@ in environment = { ATUIN_HOST = cfg.host; ATUIN_PORT = toString cfg.port; + ATUIN_MAX_HISTORY_LENGTH = toString cfg.maxHistoryLength; ATUIN_OPEN_REGISTRATION = boolToString cfg.openRegistration; ATUIN_DB_URI = "postgresql:///atuin"; ATUIN_PATH = cfg.path;