diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 19:16:14 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 19:16:14 +0530 |
| commit | f36491c92269d3e1dd241e67c292af762ac498c3 (patch) | |
| tree | 7e36c45915bf83dc7b69e21830cf0c27397c0592 /modules/development/lazygit/assertions.nix | |
| parent | f85b86095aa4ea6ac4921b6d37981bffa5c0b711 (diff) | |
| download | home-manager-config-f36491c92269d3e1dd241e67c292af762ac498c3.tar.gz home-manager-config-f36491c92269d3e1dd241e67c292af762ac498c3.zip | |
refactor: some more minor refactoring
Diffstat (limited to 'modules/development/lazygit/assertions.nix')
| -rw-r--r-- | modules/development/lazygit/assertions.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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."; } ]; |
