mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
nixos/atuin: add maxHistoryLength
This commit is contained in:
parent
cfe29195c4
commit
6f62b499cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user