1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/delta/delta-without-git-integration.nix

22 lines
569 B
Nix

{ config, ... }:
{
programs.delta = {
enable = true;
enableGitIntegration = false;
package = config.lib.test.mkStubPackage {
name = "delta";
buildScript = /* sh */ ''
mkdir -p $out/bin
echo "#!/bin/sh" > $out/bin/delta
chmod +x $out/bin/delta
'';
};
options.features = "line-numbers decorations";
};
nmt.script = ''
assertPathNotExists home-files/.config/git/config
# the wrapper should be created only if git integration is disabled
assertFileExists home-path/bin/.delta-wrapped
'';
}