From 45a9469372f30902f9f3e2f7be19a8d933a7df33 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 26 Dec 2024 00:14:54 -0800 Subject: [PATCH] fix: use correct format for git safe.directory --- hm/modules/common/shellenv/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hm/modules/common/shellenv/default.nix b/hm/modules/common/shellenv/default.nix index c53e52a..fa050e5 100644 --- a/hm/modules/common/shellenv/default.nix +++ b/hm/modules/common/shellenv/default.nix @@ -49,9 +49,9 @@ in maintenance.enable = true; extraConfig = { init.defaultBranch = "main"; - safe.directory = [ - osConfig.liminalOS.flakeLocation - ]; + safe.directory = lib.mkIf ( + osConfig.liminalOS.flakeLocation != null + ) osConfig.liminalOS.flakeLocation; }; };