From 804c9fe07071889958ddf3ed587e4756afb6bb11 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 9 Jan 2024 19:52:14 -0800 Subject: [PATCH] added atuin server exception --- modules/atuin.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/atuin.nix b/modules/atuin.nix index 7989269..c3453df 100644 --- a/modules/atuin.nix +++ b/modules/atuin.nix @@ -1,6 +1,7 @@ -{config, pkgs, atuin, ...}: +{osConfig, config, pkgs, atuin, ...}: let + hostname = osConfig.networking.hostName; in { programs.atuin = { @@ -13,7 +14,8 @@ in settings = { auto_sync = true; 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" inline_height = 40; show_preview = true;