From f36491c92269d3e1dd241e67c292af762ac498c3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 19:16:14 +0530 Subject: refactor: some more minor refactoring --- modules/development/lazygit/assertions.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/development/lazygit/assertions.nix') diff --git a/modules/development/lazygit/assertions.nix b/modules/development/lazygit/assertions.nix index 2539af6..d5b0a70 100644 --- a/modules/development/lazygit/assertions.nix +++ b/modules/development/lazygit/assertions.nix @@ -1,9 +1,12 @@ # LazyGit only makes sense when Git is enabled { config, ... }: +let + cfg = config.development.lazygit; +in { assertions = [ { - assertion = !config.development.lazygit.enable || config.development.git.enable; + assertion = !cfg.enable || config.development.git.enable; message = "development.lazygit.enable requires development.git.enable."; } ]; -- cgit v1.2.3