From fb9b526be47797e1b34302872164deb6036dd54e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 20 Apr 2026 13:07:03 -0700 Subject: [PATCH] fix(keepbook): make history menu limit optional --- nixos/keepbook-sync.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/keepbook-sync.nix b/nixos/keepbook-sync.nix index 1b36a025..9143e1b9 100644 --- a/nixos/keepbook-sync.nix +++ b/nixos/keepbook-sync.nix @@ -13,8 +13,8 @@ let "--config" cfg.configPath "--interval" cfg.interval "--jitter" cfg.jitter - "--history-points" (toString cfg.historyPoints) ] + ++ lib.optionals (cfg.historyPoints != null) [ "--history-points" (toString cfg.historyPoints) ] ++ lib.optionals (!cfg.syncOnStart) [ "--no-sync-on-start" ] ++ lib.optionals (!cfg.syncPrices) [ "--no-sync-prices" ] ++ lib.optionals (!cfg.syncSymlinks) [ "--no-sync-symlinks" ] @@ -106,9 +106,9 @@ enabledModule // { }; historyPoints = lib.mkOption { - type = lib.types.int; - default = 8; - description = "Recent portfolio history rows shown in tray menu."; + type = lib.types.nullOr lib.types.int; + default = null; + description = "Optional override for the maximum recent portfolio history rows shown in the tray menu."; }; };