added atuin server exception

This commit is contained in:
Nickiel12 2024-01-09 19:52:14 -08:00
parent c334804585
commit 804c9fe070

View file

@ -1,6 +1,7 @@
{config, pkgs, atuin, ...}: {osConfig, config, pkgs, atuin, ...}:
let let
hostname = osConfig.networking.hostName;
in in
{ {
programs.atuin = { programs.atuin = {
@ -13,7 +14,8 @@ in
settings = { settings = {
auto_sync = true; auto_sync = true;
sync_frequency = "20m"; sync_frequency = "20m";
sync_address = "https://atuin.nickiel.net"; sync_address = if (hostname == "Alaska") then "http://127.0.0.1:8910"
else "https://atuin.nickiel.net";
# filter_mode = "global" | "host" | "session" | "directory" # filter_mode = "global" | "host" | "session" | "directory"
inline_height = 40; inline_height = 40;
show_preview = true; show_preview = true;