fix(keepbook): make history menu limit optional
This commit is contained in:
@@ -13,8 +13,8 @@ let
|
|||||||
"--config" cfg.configPath
|
"--config" cfg.configPath
|
||||||
"--interval" cfg.interval
|
"--interval" cfg.interval
|
||||||
"--jitter" cfg.jitter
|
"--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.syncOnStart) [ "--no-sync-on-start" ]
|
||||||
++ lib.optionals (!cfg.syncPrices) [ "--no-sync-prices" ]
|
++ lib.optionals (!cfg.syncPrices) [ "--no-sync-prices" ]
|
||||||
++ lib.optionals (!cfg.syncSymlinks) [ "--no-sync-symlinks" ]
|
++ lib.optionals (!cfg.syncSymlinks) [ "--no-sync-symlinks" ]
|
||||||
@@ -106,9 +106,9 @@ enabledModule // {
|
|||||||
};
|
};
|
||||||
|
|
||||||
historyPoints = lib.mkOption {
|
historyPoints = lib.mkOption {
|
||||||
type = lib.types.int;
|
type = lib.types.nullOr lib.types.int;
|
||||||
default = 8;
|
default = null;
|
||||||
description = "Recent portfolio history rows shown in tray menu.";
|
description = "Optional override for the maximum recent portfolio history rows shown in the tray menu.";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user