From 4124a5ae231a585b945c9547a3ab0c37a4eba7e3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 18 Jul 2026 12:15:20 +0530 Subject: refactor: replace zsh deps with runtimeShell, migrate scripts from symlinkJoin to runCommand, add missing assertions and deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scripts: Migrated from symlinkJoin to runCommand; replaced zsh dependency with pkgs.runtimeShell across polybar, scripts, and fzf-launcher Assertions: Added gopass/gpg checks for neomutt, signing checks for git, git dependency for lazygit, file-preview deps for lf, desktop/kitten checks for scripts Lazygit: Fixed mkIf placement, imported assertions Neomutt: Removed verbose keybinding descriptions Nixvim: Removed notification-clear mapping File preview: Replaced libreoffice document preview with pandoc/antiword (terminal-based) Fzf launcher: Fixed bash compatibility (setopt → shopt -s) Deps: Added coreutils, fontconfig, antiword, pandoc, util-linux, bash, findutils, grep, sed, gawk, ncurses to various scripts --- modules/development/git/assertions.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'modules/development/git') diff --git a/modules/development/git/assertions.nix b/modules/development/git/assertions.nix index d663173..c18c847 100644 --- a/modules/development/git/assertions.nix +++ b/modules/development/git/assertions.nix @@ -10,5 +10,27 @@ SSH must be enabled (security.ssh.enable = true) to use SSH for git. ''; } + { + assertion = !config.development.git.signing.signByDefault || config.development.git.enable; + message = '' + development.git.signing.signByDefault is enabled but development.git.enable is not. + Enable development.git before enabling commit signing. + ''; + } + { + assertion = + !config.development.git.signing.signByDefault || config.development.git.signing.key != null; + message = '' + development.git.signing.signByDefault is enabled but development.git.signing.key is not set. + Set a GPG key ID before enabling commit signing by default. + ''; + } + { + assertion = !config.development.git.signing.signByDefault || config.security.gpg.enable; + message = '' + development.git.signing.signByDefault is enabled but security.gpg.enable is not. + Commit signing requires the managed GPG configuration. Please enable security.gpg. + ''; + } ]; } -- cgit v1.2.3